This is a project forked from validator.js
npm install @aftership/validator
- For function isEmail, we use rules below to validate display name (refer to the RFC2822):
- 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)
- 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 backslash \