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

Add fields seen on ATOS payment page (#588)

This commit is contained in:
Gabriel Augendre 2018-04-17 19:20:52 +02:00 committed by Kyle Spearrin
parent b22653d245
commit a0f8b0f83e

View File

@ -450,7 +450,7 @@ 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'])) {
'mois-expiration', 'm-validite', 'm-expiration', 'expirydatefield-month'])) {
fillFields.expMonth = f;
} else if (!fillFields.expYear && this.isFieldMatch(f[attr],
['exp-year', 'cc-exp-year', 'cc-year', 'card-year', 'cc-yr', 'card-yr', 'exp-yr',
@ -458,7 +458,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'])) {
'annee-expiration', 'expirydatefield-year'])) {
fillFields.expYear = f;
} else if (!fillFields.code && this.isFieldMatch(f[attr],
['cvv', 'cvc', 'cvv2', 'cc-csc', 'cc-cvv', 'card-csc', 'card-cvv', 'cvd', 'cid', 'cvc2', 'cnv',