@alkimia/utilities
Advanced tools
Comparing version
{ | ||
"name": "@alkimia/utilities", | ||
"version": "1.0.29", | ||
"version": "1.0.31", | ||
"description": "This README would normally document whatever steps are necessary to get your application up and running.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -193,3 +193,8 @@ | ||
isValidPassword (passwordFieldInput) { | ||
return this.isNonemptyString(passwordFieldInput) && !!passwordFieldInput.match(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\^$*.\[\]{}\(\)?\-“!@#%&\/,><\’:;|_~`])\S{8,99}$/); | ||
if(this.isNonemptyString(passwordFieldInput)){ | ||
return !!passwordFieldInput.match(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\^$*.\[\]{}\(\)?\-“!@#%&\/,><\’:;|_~`])\S{8,99}$/); | ||
} | ||
else{ | ||
return false | ||
} | ||
}, | ||
@@ -204,3 +209,8 @@ | ||
isValidEmail (emailFieldInput) { | ||
return this.isNonemptyString(emailFieldInput) && !!emailFieldInput.match(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/); | ||
if(this.isNonemptyString(emailFieldInput)){ | ||
return !!emailFieldInput.match(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/); | ||
} | ||
else{ | ||
return false; | ||
} | ||
}, | ||
@@ -207,0 +217,0 @@ |
14601
0.68%378
2.72%