Closed carlosrberto closed 6 years ago
When using string regex like new RegExp('\d') the string is parsed as RegExp('d') and this will break some validations. I've experienced this issue with some Elo card validations.
new RegExp('\d')
RegExp('d')
@carlosrberto I've published the new version! https://github.com/ContaAzul/creditcard.js/releases/tag/v2.1.5
It's on npm too.
Thanks! :tada:
Thanks @fernahh! 👍
When using string regex like
new RegExp('\d')
the string is parsed asRegExp('d')
and this will break some validations. I've experienced this issue with some Elo card validations.