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

feat: isEmail: validate display name using standards of RFC2822 #1004

Merged
merged 3 commits into from
May 23, 2019

Conversation

hjaurum
Copy link
Contributor

@hjaurum hjaurum commented Mar 19, 2019

Linked issue: #976

Currently, the validation rule of a display name is not such standard, I have found out the standard of display name.
Refer to the RFC2822: https://tools.ietf.org/html/rfc2822#appendix-A.1.2

The display name of an email address can be any characters(but I ruled out invisible characters in the code),
if there is any illegal character such as angled-brackets/quotes/semicolon, must enclose the display name in double-quotes,
quotes in display name should start with a backslash
And thanks for the contributions you all guys, benefit a lot!

Copy link
Member

@profnandaa profnandaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Will prefer a second look from @chriso or someone else and will be glad to land it.

Thanks for the PR! 👍

@profnandaa profnandaa added 🍿 discussion ready-to-land For PRs that are reviewed and ready to be landed and removed 🍿 discussion labels Apr 10, 2019
@teddychan
Copy link

Any update?
Will be great if this one can be merged

@gongbaodd
Copy link

Really need this PR to be merged. 🙏

@chriso
Copy link
Collaborator

chriso commented May 23, 2019

Looks good – thanks for the PR 😄

@chriso chriso merged commit 57ed38f into validatorjs:master May 23, 2019
@chriso
Copy link
Collaborator

chriso commented May 23, 2019

I'll push a new version very soon.

@teddychan
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-more-review ready-to-land For PRs that are reviewed and ready to be landed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants