mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
Move card brand fieldnames to CC constants
This commit is contained in:
parent
7e5b50a6cb
commit
5c66dade4a
@ -415,7 +415,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||
fillFields.code = f;
|
||||
break;
|
||||
} else if (!fillFields.brand && this.isFieldMatch(f[attr],
|
||||
['cc-type', 'card-type', 'card-brand', 'cc-brand', 'cb-type'])) {
|
||||
CreditCardAutoFillConstants.CardBrandFieldNames)) {
|
||||
fillFields.brand = f;
|
||||
break;
|
||||
}
|
||||
|
@ -162,6 +162,14 @@ export class CreditCardAutoFillConstants {
|
||||
"ccv",
|
||||
];
|
||||
|
||||
static readonly CardBrandFieldNames: string[] = [
|
||||
"cc-type",
|
||||
"card-type",
|
||||
"card-brand",
|
||||
"cc-brand",
|
||||
"cb-type",
|
||||
];
|
||||
|
||||
// Each index represents a language. These three arrays should all be the same length.
|
||||
// 0: English, 1: Danish, 2: German/Dutch, 3: French/Spanish/Italian, 4: Russian, 5: Portuguese
|
||||
static readonly MonthAbbr = ["mm", "mm", "mm", "mm", "mm", "mm"];
|
||||
|
Loading…
Reference in New Issue
Block a user