3 lines
108 B
TypeScript
3 lines
108 B
TypeScript
export const isEmail = (value: string) =>
|
|
/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(value);
|