naturaltts-validation
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -6,6 +6,9 @@ "use strict"; | ||
}); | ||
exports.validateUsername = exports.validateEmail = exports.validatePassword = void 0; | ||
exports.validateUsername = exports.validateEmail = exports.validatePassword = exports.USERNAME_REGEX = exports.PASSWORD_REGEX = exports.EMAIL_REGEX = void 0; | ||
var EMAIL_REGEX = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; | ||
exports.EMAIL_REGEX = EMAIL_REGEX; | ||
var PASSWORD_REGEX = /^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{8,}$/; | ||
exports.PASSWORD_REGEX = PASSWORD_REGEX; | ||
var USERNAME_REGEX = /^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/; | ||
exports.USERNAME_REGEX = USERNAME_REGEX; | ||
@@ -12,0 +15,0 @@ function validateValue(REGEX) { |
{ | ||
"name": "naturaltts-validation", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:Werter12/naturaltts-validation.git", |
2769
28