Move cardholder containsOptions to CC constants
This commit is contained in:
parent
643fc17151
commit
3bfddd0043
|
@ -383,7 +383,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||
// ref https://developers.google.com/web/fundamentals/design-and-ux/input/forms/
|
||||
if (!fillFields.cardholderName && this.isFieldMatch(f[attr],
|
||||
CreditCardAutoFillConstants.CardHolderFieldNames,
|
||||
['cc-name', 'card-name', 'cardholder-name', 'cardholder', 'tbName'])) {
|
||||
CreditCardAutoFillConstants.CardHolderFieldNameValues)) {
|
||||
fillFields.cardholderName = f;
|
||||
break;
|
||||
} else if (!fillFields.number && this.isFieldMatch(f[attr],
|
||||
|
|
|
@ -66,6 +66,14 @@ export class CreditCardAutoFillConstants {
|
|||
"nom",
|
||||
];
|
||||
|
||||
static readonly CardHolderFieldNameValues: string[] = [
|
||||
"cc-name",
|
||||
"card-name",
|
||||
"cardholder-name",
|
||||
"cardholder",
|
||||
"tbName",
|
||||
];
|
||||
|
||||
static readonly CardNumberFieldNames: string[] = [
|
||||
"cc-number",
|
||||
"cc-num",
|
||||
|
|
Loading…
Reference in New Issue