According to the issue, our latest BIN range for Maestro debit doesn't support the BINs found in the latest Mastercard Rules — June 2018
The Corporation may assign a Customer that engages in or is approved by the Corporation to engage in Activity one or more bank identification numbers (BINs).
The Corporation may assign BINs at its discretion from the following block ranges:
• Maestro: 639000 to 639099 and 670000 to 679999
Changes
I updated our regular expression so that it surfaces 639000 to 639099 and 670000 to 679999 BIN rages.
For the sake of we don't break anything, I kept the patterns that were excluded from the new ranges. I've also removed the numbers that are found within the ranged.
How is this achieved?
Old regex: /^(5018|5020|5038|6304|6703|6708|6759|676[1-3])/
New regex: /^(5018|5020|5038|6304|6390[0-9]{2}|67[0-9]{4})/
Removed 6703, 6708, and 6759
Kept 5018, 5020, and 5038
Added ranges 639000 to 639099 and 670000 to 679999
Fixes #53
Context
According to the issue, our latest BIN range for Maestro debit doesn't support the BINs found in the latest Mastercard Rules — June 2018
Changes
639000 to 639099
and670000 to 679999
BIN rages.How is this achieved?
/^(5018|5020|5038|6304|6703|6708|6759|676[1-3])/
/^(5018|5020|5038|6304|6390[0-9]{2}|67[0-9]{4})/
6703
,6708
, and6759
5018
,5020
, and5038
639000 to 639099
and670000 to 679999