1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

Add some other french tags for credit card. (#547)

I encountered these tags on oui.sncf,
the french train company
This commit is contained in:
Gabriel Augendre 2018-03-12 13:37:52 +01:00 committed by Kyle Spearrin
parent d31dbd44b9
commit 5d2b7d2383

View File

@ -431,9 +431,9 @@ export default class AutofillService implements AutofillServiceInterface {
fillFields.cardholderName = f; fillFields.cardholderName = f;
} 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'], 'credit-card', 'numero-carte', 'carte', 'carte-credit', 'num-carte'],
['cc-number', 'cc-num', 'card-number', 'card-num', 'cc-no', 'card-no', 'credit-card', ['cc-number', 'cc-num', 'card-number', 'card-num', 'cc-no', 'card-no', 'credit-card',
'carte-credit', 'numero-carte'])) { 'carte-credit', 'numero-carte', 'num-carte'])) {
fillFields.number = f; fillFields.number = f;
} else if (!fillFields.exp && this.isFieldMatch(f[attr], } else if (!fillFields.exp && this.isFieldMatch(f[attr],
['cc-exp', 'card-exp', 'cc-expiration', 'card-expiration', 'cc-ex', 'card-ex', 'card-expire', ['cc-exp', 'card-exp', 'cc-expiration', 'card-expiration', 'cc-ex', 'card-ex', 'card-expire',
@ -456,7 +456,7 @@ export default class AutofillService implements AutofillServiceInterface {
fillFields.expYear = f; fillFields.expYear = f;
} else if (!fillFields.code && this.isFieldMatch(f[attr], } else if (!fillFields.code && this.isFieldMatch(f[attr],
['cvv', 'cvc', 'cvv2', 'cc-csc', 'cc-cvv', 'card-csc', 'card-cvv', 'cvd', 'cid', 'cvc2', 'cnv', ['cvv', 'cvc', 'cvv2', 'cc-csc', 'cc-cvv', 'card-csc', 'card-cvv', 'cvd', 'cid', 'cvc2', 'cnv',
'cvn2', 'cc-code', 'card-code'])) { 'cvn2', 'cc-code', 'card-code', 'code-securite'])) {
fillFields.code = f; fillFields.code = f;
} 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'])) {