credit-card-regex
Advanced tools
Comparing version 1.2.2 to 1.2.3
'use strict'; | ||
var americanExpress = '(?:3[47][0-9]{13})'; | ||
@@ -15,3 +14,3 @@ var dinersClub = '(?:3(?:0[0-5]|[68][0-9])[0-9]{11})'; | ||
return opts.exact ? new RegExp('(?:^' + pattern + '$)') : | ||
new RegExp('(?:^|\\s)?(["\'])?' + pattern + '\\1', 'g'); | ||
new RegExp('(["\'])?' + pattern + '\\1', 'g'); | ||
}; | ||
@@ -18,0 +17,0 @@ } |
{ | ||
"name": "credit-card-regex", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Regular expression for matching credit card numbers", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
3976