braintree / credit-card-type

A library for determining credit card type
MIT License
980 stars 154 forks source link

Maestro card should range at 50, 56-69 #26

Closed jaypatel512 closed 8 years ago

jaypatel512 commented 8 years ago

Based on this wiki https://en.wikipedia.org/wiki/Payment_card_number#Issuer_identification_number_.28IIN.29, Maestro accepts 50, 56-69 range. That may include the range that Union Pay is on.

However, the regex could be this for Maestro:

Original:  /^((5((0|[6-9])\d*)?)|(6|6[37]\d*))$/
Proposed:  /^((5((0|[6-9])\d*)?)|((6([0-9]\d*)?)))$/