-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Hello! I wrote my own Java email address validation library, JMail, and I wanted to compare it to other implementations (including this one) to see how it stood up.
I tested a wide variety of email addresses using this library with the following line of code:
EmailAddressValidator.isValid(s, EmailAddressCriteria.RFC_COMPLIANT);
During this comparison I found some correctness issues with this library, as you can see on the table at this website: https://www.rohannagar.com/jmail/
For example, Joe Smith is considered valid with this library. Similarly, domain parts that start or end with the - character are considered valid when they should not be.
I wanted to bring this to your attention so you could potentially make any fixes or improvements, or maybe you can point out something wrong in my interpretation of the RFCs 🙂