You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let email = "abc�def@example.com";
EmailAddress::from_str(email).is_ok(); // true
validator::validate_email(email); // false
According to RFC6531 - UTF-8 characters should be allowed in the email however, it is often not very practical.
Perhaps the solution could be adding some parse options to the email validator.
Probably the best thing for the community would be to have just one crate for email validation and cooperation between email_address and validator.
Hi, I was comparing this crate with email_address crate
And I have an email with a controversial character � - https://en.wikipedia.org/wiki/Specials_(Unicode_block)
Then email_address and validator do not agree if it is valid or not
abc�def@example.com
According to RFC6531 - UTF-8 characters should be allowed in the email however, it is often not very practical.
Perhaps the solution could be adding some parse options to the email validator.
Probably the best thing for the community would be to have just one crate for email validation and cooperation between email_address and validator.
Refs:
The text was updated successfully, but these errors were encountered: