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

Function isValidEmail

apps/api/src/lib/email/email.utils.ts:22–28  ·  view source on GitHub ↗
(email: string)

Source from the content-addressed store, hash-verified

20 */
21
22export const isValidEmail = (email: string): boolean => {
23 if (email.trim().length === 0) {
24 return false;
25 }
26
27 return EMAIL_REGEX.test(email.trim());
28};
29
30/**
31 * Canonicalise a recipient or actor email for storage / lookup. Lowercases

Callers 2

validation.test.tsFile · 0.90
validateEmailMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected