Add more expiration date fields (#631)

These should match `expirationDateMonth` and `expirationDateYear`
This commit is contained in:
Gabriel Augendre 2018-06-01 14:33:53 +02:00 committed by Kyle Spearrin
parent 78ef55aed4
commit 9a0b1239e6
1 changed files with 3 additions and 2 deletions

View File

@ -442,7 +442,8 @@ export default class AutofillService implements AutofillServiceInterface {
'card-exp-mo', 'cc-exp-mo', 'card-expiration-month', 'expiration-month',
'cc-mm', 'cc-m', 'card-mm', 'card-m', 'card-exp-mm', 'cc-exp-mm', 'exp-mm', 'exp-m',
'expire-month', 'expire-mo', 'card-expire-month', 'card-expire-mo', 'mois-validite',
'mois-expiration', 'm-validite', 'm-expiration', 'expirydatefield-month'])) {
'mois-expiration', 'm-validite', 'm-expiration', 'expirydatefield-month',
'expiration-date-month'])) {
fillFields.expMonth = f;
break;
} else if (!fillFields.expYear && this.isFieldMatch(f[attr],
@ -451,7 +452,7 @@ export default class AutofillService implements AutofillServiceInterface {
'cc-yy', 'cc-y', 'card-yy', 'card-y', 'card-exp-yy', 'cc-exp-yy', 'exp-yy', 'exp-y',
'cc-yyyy', 'card-yyyy', 'card-exp-yyyy', 'cc-exp-yyyy', 'expire-year', 'expire-yr',
'card-expire-year', 'card-expire-yr', 'an-validite', 'an-expiration', 'annee-validite',
'annee-expiration', 'expirydatefield-year'])) {
'annee-expiration', 'expirydatefield-year', 'expiration-date-year'])) {
fillFields.expYear = f;
break;
} else if (!fillFields.code && this.isFieldMatch(f[attr],