react-form-validator-component
Advanced tools
Comparing version 1.6.1 to 1.6.2
{ | ||
"name": "react-form-validator-component", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"main": "build/lib/index.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:JDLT-Ltd/react-form-validator-component.git", |
@@ -16,3 +16,3 @@ const emailRegex = /^(([^<>()[\]\\.,;:\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,}))$/ | ||
validator: data => { | ||
if (((data.isArray() && data.length > 0) && data) || data === false) return true | ||
if ((Array.isArray(data) && data.length > 0) || data === false || (data && !Array.isArray(data))) return true | ||
return false | ||
@@ -19,0 +19,0 @@ }, |
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
327122