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