async-validator
Advanced tools
Comparing version 1.1.5 to 1.1.6
'use strict'; | ||
var util = require('../util'); | ||
var required = require('./required'); | ||
var pattern = { | ||
@@ -65,5 +66,4 @@ email: /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/, | ||
var type = function type(rule, value, source, errors, options) { | ||
// if value is required and value is undefined | ||
// no need to add this error message | ||
if (rule.required && value === undefined) { | ||
required(rule, value, source, errors, options); | ||
return; | ||
@@ -70,0 +70,0 @@ } |
{ | ||
"name": "async-validator", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "validate form asynchronous", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
40874