mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-25 16:59:17 +01:00
Add more expiration date fields (#631)
These should match `expirationDateMonth` and `expirationDateYear`
This commit is contained in:
parent
78ef55aed4
commit
9a0b1239e6
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user