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

[v6] Relax constraints for UserID email address validity #1641

Merged
merged 2 commits into from
Feb 2, 2024

Conversation

larabr
Copy link
Collaborator

@larabr larabr commented May 15, 2023

New checks align with the HTML5 W3C spec and should be more lax than the existing ones (meaning, addresses which passed validation before should continue to be valid). Addresses with domain such as @localhost are now allowed too, since presence of "." is no longer enforced.

These checks should not be considered exhaustive: library users are encouraged to implement separate checks for email validity if needed.

New checks align with the HTML5 W3C spec and should be more lax than the existing ones (meaning, addresses which passed validation before should continue to be valid).
Addresses such as @localhost are now allowed too, since presence of "." is no longer enforced.

These checks should not be considered exhaustive: library users are encouraged to implement separate checks for email validity if needed.
test/general/util.js Outdated Show resolved Hide resolved
test/general/util.js Outdated Show resolved Hide resolved
test/general/util.js Outdated Show resolved Hide resolved
src/util.js Outdated Show resolved Hide resolved
Co-authored-by: Daniel Huigens <d.huigens@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants