timofei-iatsenko / angular-cc-library

Library to support Credit Card input masking and validation
MIT License
82 stars 71 forks source link

Forcing exp date for only one specific format #30

Open ermamud opened 6 years ago

ermamud commented 6 years ago

I know exp date validators support both ways: MM/YY and MM/YYYY. But, Is there a way to force the validator to only validate one format? I 'd like to use only MM/YYYY in my project

phill2mj commented 4 years ago

@ermamud I've created a PR to address this: https://github.com/nogorilla/angular-cc-library/pull/58

xenobardok commented 4 years ago

Use minlength="9" to specify mm/yyyy or use max-length="7" to specify mm/yy