vue-credit-card-validation
vue-credit-card-validation copied to clipboard
The expiration year is not validated correctly
This issue also can be checked on the example page https://wuori.github.io/vue-credit-card-validation/example/
If you try to set a two digits year before 2000, like '99', '98' and so on the focus is set to CVC input and the validator doesn't work

but if you set the full year like '1999', '1998' the validator works.
Great find! I'll try to get this updated soon. Feel free to submit a PR in the meantime if you want. Thanks!
@IsidroMar95 When you put in 78
it is setting the card expiry year to 2078
which is valid.
While most cards have expiration limits within 20 years, there is no standard to rely upon (at least none that I could find).
If you can find some spec that dictates the max deviation in years for a card's expiration date, please share. Until then, I don't really know the best path to address this issue except for providing an option to set a max years value.
Please let me know your thoughts.