Comparing version 2.2.0 to 2.2.1
{ | ||
"name": "payment", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"main": "dist/payment.js" | ||
} |
@@ -229,12 +229,8 @@ var payment = | ||
upperLength = upperLengths[i]; | ||
if (length > upperLength && upperLengths[i + 1]) { | ||
if (length >= upperLength && upperLengths[i + 1]) { | ||
continue; | ||
} | ||
if (length > upperLength) { | ||
if (length >= upperLength) { | ||
return; | ||
} | ||
if (length === upperLength) { | ||
QJ.val(target, value + digit); | ||
return; | ||
} | ||
} | ||
@@ -253,6 +249,2 @@ if (hasTextSelected(target)) { | ||
return QJ.trigger(target, 'change'); | ||
} else if (re.test(value + digit)) { | ||
e.preventDefault(); | ||
QJ.val(target, value + digit + ' '); | ||
return QJ.trigger(target, 'change'); | ||
} | ||
@@ -259,0 +251,0 @@ }; |
@@ -184,12 +184,8 @@ // Generated by CoffeeScript 1.10.0 | ||
upperLength = upperLengths[i]; | ||
if (length > upperLength && upperLengths[i + 1]) { | ||
if (length >= upperLength && upperLengths[i + 1]) { | ||
continue; | ||
} | ||
if (length > upperLength) { | ||
if (length >= upperLength) { | ||
return; | ||
} | ||
if (length === upperLength) { | ||
QJ.val(target, value + digit); | ||
return; | ||
} | ||
} | ||
@@ -208,6 +204,2 @@ if (hasTextSelected(target)) { | ||
return QJ.trigger(target, 'change'); | ||
} else if (re.test(value + digit)) { | ||
e.preventDefault(); | ||
QJ.val(target, value + digit + ' '); | ||
return QJ.trigger(target, 'change'); | ||
} | ||
@@ -214,0 +206,0 @@ }; |
{ | ||
"name": "payment", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "A general purpose library for building credit card forms, validating inputs and formatting numbers. Base on jquery.payment by @stripe, but without the jQuery.", | ||
@@ -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
52909
1473