braintree / credit-card-type

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

Update UnionPay regexes #44

Closed matthewarkin closed 7 years ago

matthewarkin commented 7 years ago

We discovered that there are some bin ranges that are shared between Maestro and UnionPay. In particular one bin can be either UnionPay or Maestro depending on the length of the card number. This attempts to update the regexes to better align with what we believe UnionPay numbers to be and exclude Maestro cards from being labeled as UnionPay.

lilaconlee commented 7 years ago

We should remember to add this to the changelog when we bump the version though