1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-24 16:49:26 +01:00

Add fields met on Ticketac payment form (#767)

Ticketac is a french website for spectacle tickets.
This commit is contained in:
Gabriel Augendre 2018-11-05 13:56:17 +01:00 committed by Kyle Spearrin
parent 6627d29c7c
commit 7d1c071ce2

View File

@ -423,9 +423,9 @@ export default class AutofillService implements AutofillServiceInterface {
break; break;
} else if (!fillFields.number && this.isFieldMatch(f[attr], } else if (!fillFields.number && this.isFieldMatch(f[attr],
['cc-number', 'cc-num', 'card-number', 'card-num', 'number', 'cc', 'cc-no', 'card-no', ['cc-number', 'cc-num', 'card-number', 'card-num', 'number', 'cc', 'cc-no', 'card-no',
'credit-card', 'numero-carte', 'carte', 'carte-credit', 'num-carte'], 'credit-card', 'numero-carte', 'carte', 'carte-credit', 'num-carte', 'cb-num'],
['cc-number', 'cc-num', 'card-number', 'card-num', 'cc-no', 'card-no', 'numero-carte', ['cc-number', 'cc-num', 'card-number', 'card-num', 'cc-no', 'card-no', 'numero-carte',
'num-carte'])) { 'num-carte', 'cb-num'])) {
fillFields.number = f; fillFields.number = f;
break; break;
} else if (!fillFields.exp && this.isFieldMatch(f[attr], } else if (!fillFields.exp && this.isFieldMatch(f[attr],
@ -445,7 +445,7 @@ export default class AutofillService implements AutofillServiceInterface {
'card-expire-mo', 'card-expiry-month', 'card-expiry-mo', 'mois-validite', 'card-expire-mo', 'card-expiry-month', 'card-expiry-mo', 'mois-validite',
'mois-expiration', 'm-validite', 'm-expiration', 'expiry-date-field-month', 'mois-expiration', 'm-validite', 'm-expiration', 'expiry-date-field-month',
'expiration-date-month', 'expiration-date-mm', 'exp-mon', 'validity-mo', 'expiration-date-month', 'expiration-date-mm', 'exp-mon', 'validity-mo',
'exp-date-mo'])) { 'exp-date-mo', 'cb-date-mois'])) {
fillFields.expMonth = f; fillFields.expMonth = f;
break; break;
} else if (!fillFields.expYear && this.isFieldMatch(f[attr], } else if (!fillFields.expYear && this.isFieldMatch(f[attr],
@ -455,7 +455,7 @@ export default class AutofillService implements AutofillServiceInterface {
'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',
'expiry-year', 'expiry-yr', 'card-expire-year', 'card-expire-yr', 'card-expiry-year', 'expiry-year', 'expiry-yr', 'card-expire-year', 'card-expire-yr', 'card-expiry-year',
'card-expiry-yr', 'an-validite', 'an-expiration', 'annee-validite', 'card-expiry-yr', 'an-validite', 'an-expiration', 'annee-validite',
'annee-expiration', 'expiry-date-field-year', 'expiration-date-year', 'annee-expiration', 'expiry-date-field-year', 'expiration-date-year', 'cb-date-ann',
'expiration-date-yy', 'expiration-date-yyyy', 'validity-year', 'exp-date-year'])) { 'expiration-date-yy', 'expiration-date-yyyy', 'validity-year', 'exp-date-year'])) {
fillFields.expYear = f; fillFields.expYear = f;
break; break;
@ -466,7 +466,7 @@ export default class AutofillService implements AutofillServiceInterface {
fillFields.code = f; fillFields.code = f;
break; break;
} else if (!fillFields.brand && this.isFieldMatch(f[attr], } else if (!fillFields.brand && this.isFieldMatch(f[attr],
['cc-type', 'card-type', 'card-brand', 'cc-brand'])) { ['cc-type', 'card-type', 'card-brand', 'cc-brand', 'cb-type'])) {
fillFields.brand = f; fillFields.brand = f;
break; break;
} }