Comparing version 0.0.7-dev to 0.0.8-dev
@@ -60,2 +60,3 @@ 'use strict' | ||
case 'isString': | ||
case 'isEmail': | ||
_match = _compare === validate.string[rule](value) | ||
@@ -62,0 +63,0 @@ break |
@@ -12,2 +12,8 @@ 'use strict' | ||
return string.isString(value) && value.length > than | ||
}, | ||
isEmail: function (value) { | ||
if (!value || !string.isString(value)) { | ||
return false | ||
} | ||
return (/^[\w\.-]+@[\w\.-]+$/i).test(value) | ||
} | ||
@@ -14,0 +20,0 @@ } |
{ | ||
"name": "checkv", | ||
"version": "0.0.7-dev", | ||
"version": "0.0.8-dev", | ||
"description": "javascript idiomatic validator", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8168
258