Skip to content

Commit

Permalink
Merge pull request #3 from nileshr/update-diners-regex
Browse files Browse the repository at this point in the history
Updated Diners Club International Regex
  • Loading branch information
boazjohn authored Jan 19, 2017
2 parents 6e65fc5 + 29fbc0d commit 1be3ce0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/validator.js

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-card-validator",
"version": "1.0.7",
"version": "1.0.8",
"description": "Card validation helpers for card number, expiry and CVV.",
"main": "index.js",
"scripts": {
Expand All @@ -24,4 +24,3 @@
},
"homepage": "https://github.com/juspay/card-validator#readme"
}

2 changes: 1 addition & 1 deletion src/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var cardTypes = [
cvv_length: [3]
}, {
name: 'diners_club_international',
pattern: /^36/,
pattern: /^3([689]|09)/,
valid_length: [14],
cvv_length: [3]
}, {
Expand Down

0 comments on commit 1be3ce0

Please sign in to comment.