* Checks for obvious patterns that indicate invalid emails
(email: string)
| 59 | * Checks for obvious patterns that indicate invalid emails |
| 60 | */ |
| 61 | function hasInvalidPatterns(email: string): boolean { |
| 62 | if (email.includes('..')) return true |
| 63 | |
| 64 | const localPart = email.split('@')[0] |
| 65 | if (localPart && localPart.length > 64) return true |
| 66 | |
| 67 | return false |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * Quick email validation for client-side form feedback. |
no outgoing calls
no test coverage detected