Skip to content

Commit

Permalink
Adding support for master card bins
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesGeorg authored and boazjohn committed May 22, 2021
1 parent cc3bf45 commit 4cee4ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/validator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@juspay/simple-card-validator",
"version": "1.2.2",
"version": "1.2.3",
"description": "Card validation helpers for card number, expiry and CVV.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var cardTypes = [
gaps: [4, 8, 12],
}, {
name: 'mastercard',
pattern: /^5[1-5]/,
range : [[222100, 272099],[510000, 559999]],
valid_length: [16],
cvv_length: [3],
gaps: [4, 8, 12],
Expand Down

0 comments on commit 4cee4ee

Please sign in to comment.