(email: string)
| 20 | */ |
| 21 | |
| 22 | export 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 |
no outgoing calls
no test coverage detected