pagarme-js
pagarme-js copied to clipboard
CDN validation feature with unexpected result
Description
The validate
function of the CDN returns true
when passed an empty credit card number. I tested with the pagarme.min.js
generated by the build script, and it worked as expected. Maybe the CDN version is outdated?
- [x] I have tested with the latest version
- [x] I can simulate the issue easily
Here is a pen demonstrating the issue.
Current Behavior
validate
function returns true
when passed an empty credit card number.
Expected Behavior
Should return false
for empty values such as ''
.