ContaAzul / creditcard.js

A simple credit card validation library in JavaScript
http://contaazul.github.io/creditcard.js/
Other
374 stars 82 forks source link

Expired cc dates return as valid #99

Closed paulogr closed 3 years ago

paulogr commented 4 years ago

Hello, nice lib, very lightweight.

Should expired dates return as valid?

cc.isExpirationDateValid(11,2017) returns true but 2017 is past.

Are you accepting PR's ?

Thanks!

dedicio commented 3 years ago

Hi @paulogr!

This issue was fixed on PR #120

See changes: https://contaazul.github.io/creditcard.js/

Thanks!