Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E-mail validation rule #576

Open
sgurin opened this issue Feb 23, 2023 · 2 comments
Open

E-mail validation rule #576

sgurin opened this issue Feb 23, 2023 · 2 comments
Labels
feature request New feature or request

Comments

@sgurin
Copy link

sgurin commented Feb 23, 2023

Hi.

E-mail validation rule passes special avoided characters. For, example #.

image

According to RFC 5322, the local part of an email address can contain a combination of letters, digits, and the following special characters:

Period (".")
Plus sign ("+")
Hyphen ("-")
Underscore ("_")

@sgurin sgurin added the feature request New feature or request label Feb 23, 2023
@justin-schroeder
Copy link
Member

This is more complex than it appears at first and there are conflicting RFCs about this. RFC3696 allows characters like # in various circumstances. Since the worst case scenario is to prevent someone from entering a valid email address this rule takes a permissive approach to email.

@sgurin
Copy link
Author

sgurin commented Feb 23, 2023

RFC 3696 is an informational document that provides guidelines for validating and formatting email addresses. While it does not define the syntax of email addresses, it provides recommendations for checking and validating email addresses in order to avoid common errors.

So, where is the golden middle? For example, Google does not allow to use # in e-mails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants