all repos — caroster @ 8a3f929f7db1c92e4c4b92eee75c20aab48a9950

[Octree] Group carpool to your event https://caroster.io

frontend/lib/formValidation.ts (view raw)

1// eslint-disable-next-line
2const emailRegex =
3  /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
4
5export const isValidEmail = (email: string) => emailRegex.test(email);