forked from validatorjs/validator.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from hjaurum/master
docs: update README.md
- Loading branch information
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
||
|