pablostefan / regex_pattern_text_field

Other
1 stars 1 forks source link

Your email pattern in lib/helpers/regex_pattern_helper.dart is very wrong. #1

Open RandalSchwartz opened 1 year ago

RandalSchwartz commented 1 year 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.

pablostefan commented 1 year ago

Thank you very much for the wonderful tip! Thank you for sharing the link for correct validation of email addresses according to RFC822. I take accuracy and compliance with established standards very seriously.

I've already made the change and now I'm using the correct regex pattern to validate the email. This change is important to ensure that our systems accurately and reliably validate email addresses.

Thank you again for your valuable contribution. If you have any more suggestions or relevant information, please don't hesitate to share them with me. I am always looking for continuous improvement and appreciate every opportunity to improve myself.