Back
Question
We're a group of makers shipping together. We help each other stay accountable and reach our goals.
Apply for accessGo to Homepage | g h |
Go to Done Todos | g d |
Go to Questions | g q |
Compose a New Todo | n |
Go to Search | / |
Show this dialog | ? |
👋 Join WIP to participate
Just use the html validation attributes :)
Are you looking to verify if it's a real email (likely fake?) or to validate that it could be a real email? +1 for HTML5 validation as a simple solution.
This one works fine, if you are thinking about email input: www.npmjs.com/package/validat…
stackoverflow.com/questions/4…
I think there are quadrillion valid email patterns, so using a library is 🙌 . One other very solid way to validate an email is sending an actual email to that address. Let the user click a link and then flag the mail as verified. I usually stick to the HTML attribute or check for an @ (if anything).