(from: string)
| 446 | ] as const; |
| 447 | |
| 448 | const 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 | |
| 463 | const checkEmailProvider = (env: Env): string[] => { |
| 464 | if (env.NODE_ENV !== "production") { |
no outgoing calls
no test coverage detected