hello-addweb / email_validator

Apache License 2.0
0 stars 0 forks source link

Your email regex is flawed. #1

Closed RandalSchwartz closed 2 months ago

RandalSchwartz commented 10 months ago

No, please don't use this regex to validate email. It's wrong. The shortest regex to validate an RFC822 email address is about 2400 characters, and is given in https://www.ex-parrot.com/pdw/Mail-RFC822-Address.html. Anything shorter is WRONG, unless you're using a grammar, as package:email_validator properly does. Use that for Dart/Flutter please.

sultan-addweb commented 2 months ago

Done