mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-19 11:15:21 +01:00
Move card expiry fieldnames to CC constants
This commit is contained in:
parent
ec60979ee2
commit
4e274c2f44
@ -393,10 +393,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||
fillFields.number = f;
|
||||
break;
|
||||
} else if (!fillFields.exp && this.isFieldMatch(f[attr],
|
||||
['cc-exp', 'card-exp', 'cc-expiration', 'card-expiration', 'cc-ex', 'card-ex',
|
||||
'card-expire', 'card-expiry', 'validite', 'expiration', 'expiry', 'mm-yy',
|
||||
'mm-yyyy', 'yy-mm', 'yyyy-mm', 'expiration-date', 'payment-card-expiration',
|
||||
'payment-cc-date'],
|
||||
CreditCardAutoFillConstants.CardExpiryFieldNames,
|
||||
['mm-yy', 'mm-yyyy', 'yy-mm', 'yyyy-mm', 'expiration-date',
|
||||
'payment-card-expiration'])) {
|
||||
fillFields.exp = f;
|
||||
|
@ -76,6 +76,27 @@ export class CreditCardAutoFillConstants {
|
||||
"cb-num",
|
||||
];
|
||||
|
||||
static readonly CardExpiryFieldNames: string[] = [
|
||||
"cc-exp",
|
||||
"card-exp",
|
||||
"cc-expiration",
|
||||
"card-expiration",
|
||||
"cc-ex",
|
||||
"card-ex",
|
||||
"card-expire",
|
||||
"card-expiry",
|
||||
"validite",
|
||||
"expiration",
|
||||
"expiry",
|
||||
"mm-yy",
|
||||
"mm-yyyy",
|
||||
"yy-mm",
|
||||
"yyyy-mm",
|
||||
"expiration-date",
|
||||
"payment-card-expiration",
|
||||
"payment-cc-date",
|
||||
];
|
||||
|
||||
static readonly ExpiryMonthFieldNames: string[] = [
|
||||
"exp-month",
|
||||
"cc-exp-month",
|
||||
|
Loading…
Reference in New Issue
Block a user