react-form-validator-component
Advanced tools
Comparing version 1.5.11 to 1.6.0
{ | ||
"name": "react-form-validator-component", | ||
"version": "1.5.11", | ||
"version": "1.6.0", | ||
"main": "build/lib/index.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:JDLT-Ltd/react-form-validator-component.git", |
@@ -0,0 +0,0 @@ # React Form Validator |
@@ -0,0 +0,0 @@ import React from 'react' |
import Validator from './Validator' | ||
export { Validator } |
@@ -16,6 +16,6 @@ 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 || data === false) return true | ||
if (((data.isArray() && data.length > 0) || data) || data === false) return true | ||
return false | ||
}, | ||
error: 'Please provide a value' | ||
error: 'Please provide a value.' | ||
} | ||
@@ -22,0 +22,0 @@ |
@@ -0,0 +0,0 @@ import React from 'react' |
@@ -0,0 +0,0 @@ const path = require("path"); |
@@ -0,0 +0,0 @@ const path = require('path'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
327093