all repos — caroster @ 292de207bc409a9c2d8e6a74baaa35a34fc4797b

[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);