Mastercard validation - new BIN numbers


#1

Hi,

Got this message below from a credit card processor. The new BIN range hasn’t been set up in Semantic.js’ validation. What pattern do we add to the code below?

Currently, the card number of any Mastercard credit or debit card starts with six digits between 510000 – 559999, this is their BIN range. From 2017, Mastercard will introduce a new BIN range, 222100 – 272099, which means that their cards may now start with numbers within this range.

mastercard: {
        pattern : /^5[1-5]/,
        length  : [16]
      },

Thank you in advance.