Note, even validation libraries get it pretty wrong. Email validation, for example can get pretty dicey, and often best to split on '@' and do some initial checks (no spaces, length, etc) beyond this before proceeding.

Michael J. Ryan
Michael J. Ryan

Written by Michael J. Ryan

Food nerd (keto, omad, carnivore) — Programmer and JavaScript junkie! (node.js, mongodb, browser)

No responses yet