We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Using the 81* range UNION Pay card numbers does not pass isCreditCard check
Examples Sample Test Cards: https://docs.adyen.com/development-resources/test-cards/test-card-numbers#china-unionpay
validator.isCreditCard('8171999900000000021') false
validator.isCreditCard('8171999900000000021')
The problem is the initial regex in https://github.com/validatorjs/validator.js/blob/master/src/lib/isCreditCard.js#L4
Additional context Validator.js version: 13.6.0 Node.js version: 14 OS platform:l inux
The text was updated successfully, but these errors were encountered:
Hey! I'd like to take this issue
Sorry, something went wrong.
Fixes validatorjs#1680
ceb2be5
feat(isCreditCard): Fixed regex for Union Pay Credit cards with 81 ra…
e84623b
…nge (#1715) * Fixes #1680 * Added Tests
Successfully merging a pull request may close this issue.
Describe the bug
Using the 81* range UNION Pay card numbers does not pass isCreditCard check
Examples
Sample Test Cards: https://docs.adyen.com/development-resources/test-cards/test-card-numbers#china-unionpay
validator.isCreditCard('8171999900000000021')
false
The problem is the initial regex in https://github.com/validatorjs/validator.js/blob/master/src/lib/isCreditCard.js#L4
Additional context
Validator.js version: 13.6.0
Node.js version: 14
OS platform:l inux
The text was updated successfully, but these errors were encountered: