mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
4 lines
166 B
TypeScript
4 lines
166 B
TypeScript
export const EMAIL_REGEXP = /^[\w.%+-]+@[a-z\d-]+(?:\.[a-z\d-]+)+$/i;
|
|
|
|
export const validator = (value: string) => EMAIL_REGEXP.test(value) ? true : 'Invalid email';
|