Move cardExpiry containsOptions to CC constants
This commit is contained in:
parent
c0134e2776
commit
306b7e38c3
|
@ -393,8 +393,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||
break;
|
||||
} else if (!fillFields.exp && this.isFieldMatch(f[attr],
|
||||
CreditCardAutoFillConstants.CardExpiryFieldNames,
|
||||
['mm-yy', 'mm-yyyy', 'yy-mm', 'yyyy-mm', 'expiration-date',
|
||||
'payment-card-expiration'])) {
|
||||
CreditCardAutoFillConstants.CardExpiryFieldNameValues)) {
|
||||
fillFields.exp = f;
|
||||
break;
|
||||
} else if (!fillFields.expMonth && this.isFieldMatch(f[attr],
|
||||
|
|
|
@ -124,6 +124,15 @@ export class CreditCardAutoFillConstants {
|
|||
"payment-cc-date",
|
||||
];
|
||||
|
||||
static readonly CardExpiryFieldNameValues: string[] = [
|
||||
"mm-yy",
|
||||
"mm-yyyy",
|
||||
"yy-mm",
|
||||
"yyyy-mm",
|
||||
"expiration-date",
|
||||
"payment-card-expiration",
|
||||
];
|
||||
|
||||
static readonly ExpiryMonthFieldNames: string[] = [
|
||||
"exp-month",
|
||||
"cc-exp-month",
|
||||
|
|
Loading…
Reference in New Issue