1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 10:13:31 +00:00

Move CVV fieldnames to CC constants

This commit is contained in:
Daniel James Smith
2022-01-02 14:16:27 +01:00
parent bb294ac792
commit 7e5b50a6cb
2 changed files with 25 additions and 3 deletions

View File

@@ -138,6 +138,30 @@ export class CreditCardAutoFillConstants {
"date-y",
];
static readonly CVVFieldNames: string[] = [
"cvv",
"cvc",
"cvv2",
"cc-csc",
"cc-cvv",
"card-csc",
"card-cvv",
"cvd",
"cid",
"cvc2",
"cnv",
"cvn2",
"cc-code",
"card-code",
"code-securite",
"security-code",
"crypto",
"card-verif",
"verification-code",
"csc",
"ccv",
];
// 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"];