Skip to content

Commit

Permalink
update build files
Browse files Browse the repository at this point in the history
  • Loading branch information
michaltk committed Jun 26, 2017
1 parent 544de7c commit 914e89c
Show file tree
Hide file tree
Showing 3 changed files with 1,246 additions and 1,133 deletions.
2 changes: 1 addition & 1 deletion lib/isCreditCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var creditCard = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][

function isCreditCard(str) {
(0, _assertString2.default)(str);
var sanitized = str.replace(/[^0-9]+/g, '');
var sanitized = str.replace(/[- ]+/g, '');
if (!creditCard.test(sanitized)) {
return false;
}
Expand Down
Loading

0 comments on commit 914e89c

Please sign in to comment.