DEV Community

Discussion on: How to validate an email address in JavaScript

Collapse
 
wuz profile image
Conlin Durbin

First, when validating email addresses I believe it's better to error on the permissive side.

Great advice here! It's always better to fix things on a company side, over making things worse for users. At one of my old jobs, we had some issues with an email regex that wasn't permissive enough - I believe the user had a quotation mark in their email, which is perfectly valid, but we had never seen it before.