Skip to content

Commit

Permalink
fixes #18889, support new 2-series mastercard ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoup authored and dylans committed Oct 6, 2016
1 parent a883725 commit 1721683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validate/creditCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ validate._cardInfo = {
// | "my":"7[0-9]{14}"
// | });

'mc':'5[1-5][0-9]{14}',
'mc':'((5[1-5][0-9]{2})|2(22[1-9]|2[3-9][0-9]|[3-6][0-9][0-9]|7[0-1][0-9]|720))[0-9]{12}',
'ec':'5[1-5][0-9]{14}',
'vi':'4(?:[0-9]{12}|[0-9]{15})',
'ax':'3[47][0-9]{13}',
Expand Down

0 comments on commit 1721683

Please sign in to comment.