card-validator
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -0,1 +1,6 @@ | ||
3.0.1 | ||
===== | ||
- Fix postal code validation to be valid if 3 or more characters | ||
3.0.0 | ||
@@ -2,0 +7,0 @@ ===== |
{ | ||
"name": "card-validator", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "A library for validating credit card fields", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
'use strict'; | ||
var isString = require('lodash/lang/isString'); | ||
var MIN_POSTAL_CODE_LENGTH = 3; | ||
@@ -12,3 +13,3 @@ function verification(isValid, isPotentiallyValid) { | ||
return verification(false, false); | ||
} else if (value.length < 4) { | ||
} else if (value.length < MIN_POSTAL_CODE_LENGTH) { | ||
return verification(false, true); | ||
@@ -15,0 +16,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
23016
288