3c4f3331d8
Jenkins Production Deployment
Reviewed-on: #8 Co-authored-by: Patrick Mueller <patrick@mueller-patrick.tech> Co-committed-by: Patrick Mueller <patrick@mueller-patrick.tech>
7 lines
341 B
TypeScript
7 lines
341 B
TypeScript
// Intentionally permissive - "looks like an email" (something@something.tld),
|
|
// not full RFC 5322 validation. Good enough to catch typos without rejecting
|
|
// real addresses RFC 5322 edge cases would.
|
|
const EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
|
|
export const isValidEmail = (email: string): boolean => EMAIL_REGEX.test(email.trim());
|