MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / isPlaceholderFromAddress

Function isPlaceholderFromAddress

apps/api/src/config/env/validate.ts:448–461  ·  view source on GitHub ↗
(from: string)

Source from the content-addressed store, hash-verified

446] as const;
447
448const isPlaceholderFromAddress = (from: string): boolean => {
449 const atIndex = from.indexOf("@");
450
451 if (atIndex === -1) {
452 return false;
453 }
454
455 const domain = from.slice(atIndex + 1).toLowerCase();
456
457 return PLACEHOLDER_FROM_DOMAINS.some(
458 (placeholder) =>
459 domain === placeholder || domain.endsWith(`.${placeholder}`)
460 );
461};
462
463const checkEmailProvider = (env: Env): string[] => {
464 if (env.NODE_ENV !== "production") {

Callers 1

checkEmailFromDomainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected