all repos — caroster @ c4ee8c801635c3fcdb28d1bec4b97d691b098144

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