0.0.1 • Published 8 years ago
w3-is-email v0.0.1
w3-is-email
Email address validation using the regex from the w3 specs for html input field (type="email")
/^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/
https://www.w3.org/TR/html-markup/input.email.html
Usage
var isEmail = require('w3-is-email');
isEmail('test@example.org'); // true
0.0.1
8 years ago