1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-26 17:08:33 +01:00

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

View File

@ -442,7 +442,8 @@ export default class AutofillService implements AutofillServiceInterface {
'card-exp-mo', 'cc-exp-mo', 'card-expiration-month', 'expiration-month', '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', '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', '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; fillFields.expMonth = f;
break; break;
} else if (!fillFields.expYear && this.isFieldMatch(f[attr], } 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-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', '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', '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; fillFields.expYear = f;
break; break;
} else if (!fillFields.code && this.isFieldMatch(f[attr], } else if (!fillFields.code && this.isFieldMatch(f[attr],