Skip to content

AfterShip/validator.js

 
 

Repository files navigation

aftership-validator-js

This is a project forked from validator.js

Installation

npm install @aftership/validator

New features

  1. For function isEmail, we use rules below to validate display name (refer to the RFC2822):
    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 \

About

String validation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%