Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
NEW(CardType) Mastercard BINS
Browse files Browse the repository at this point in the history
  • Loading branch information
greenteapiccolo committed Feb 2, 2021
1 parent e5e37d9 commit 876ae08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
class CardRegex {
// See: http://www.regular-expressions.info/creditcard.html
static final String REGX_VISA = "^4[0-9]{15}?"; // VISA 16
static final String REGX_MC = "^5[1-5][0-9]{14}$"; // MC 16
static final String REGX_MC = "^5[1-9][0-9]{14}$"; // MC 16
static final String REGX_AMEX = "^3[47][0-9]{13}$"; // AMEX 15
static final String REGX_DISCOVER = "^6(?:011|5[0-9]{2})[0-9]{12}$"; // Discover 16
static final String REGX_DINERS_CLUB = "^3(?:0[0-5]|[68][0-9])[0-9]{11}$"; // DinersClub 14
static final String REGX_JCB = "^35[0-9]{14}$"; // JCB 16

static final String REGX_VISA_TYPE = "^4[0-9]{3}?"; // VISA 16
static final String REGX_MC_TYPE = "^5[1-5][0-9]{2}$"; // MC 16
static final String REGX_MC_TYPE = "^5[1-9][0-9]{2}$"; // MC 16
static final String REGX_AMEX_TYPE = "^3[47][0-9]{2}$"; // AMEX 15
static final String REGX_DISCOVER_TYPE = "^6(?:011|5[0-9]{2})$"; // Discover 16
static final String REGX_DINERS_CLUB_TYPE = "^3(?:0[0-5]|[68][0-9])[0-9]$"; // DinersClub 14
Expand Down

0 comments on commit 876ae08

Please sign in to comment.