Skip to content

Commit

Permalink
Merge pull request #3 from hjaurum/master
Browse files Browse the repository at this point in the history
docs: update README.md
  • Loading branch information
hjaurum authored Mar 18, 2019
2 parents ee264e0 + 7d30f35 commit 44dcc06
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ This is a project forked from [validator.js](https://github.com/chriso/validator
`npm install aftership-validator-js`

## New features
1. **isEmail** supports display name with any characters other than invisible character
1. For function **isEmail**, we use rules below to validate display name (refer to the [RFC2822](https://tools.ietf.org/html/rfc2822#appendix-A.1.2)):
1. The display name of an email address can be any characters(but we ruled out invisible characters in the code, so can't be invisible characters)
2. If there is any illegal character such as angled-brackets/quotes/semicolon, must enclose the display name in double-quotes
3. Quotes in display name should start with backslash \


`emoji name🍅<[email protected]>` can pass the validation.


0 comments on commit 44dcc06

Please sign in to comment.