all repos — caroster @ b12870356d64fdac978371fc632c400ee9c58f17

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