From 429b92003a3c2d2748476e14852bd1e4ec5e86ed Mon Sep 17 00:00:00 2001 From: Eugene Date: Wed, 18 Jan 2023 21:51:37 +0300 Subject: [PATCH] Fix autofill of expiration date input for bank cards (#3768) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The problem was the incorrect identification of the input format. The input with `placeholder="ММ / ГГ"` got a value in `YYYY-MM` format, which is fallback in case when required format was not identified. It happened because `ММ` in the placeholder value had russian characters, but actual constant has english ones. --- apps/browser/src/services/autofillConstants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/browser/src/services/autofillConstants.ts b/apps/browser/src/services/autofillConstants.ts index 94b54a7150..be29838646 100644 --- a/apps/browser/src/services/autofillConstants.ts +++ b/apps/browser/src/services/autofillConstants.ts @@ -255,7 +255,7 @@ export class CreditCardAutoFillConstants { // 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"]; + static readonly MonthAbbr = ["mm", "mm", "mm", "mm", "мм", "mm"]; static readonly YearAbbrShort = ["yy", "åå", "jj", "aa", "гг", "rr"]; static readonly YearAbbrLong = ["yyyy", "åååå", "jjjj", "aa", "гггг", "rrrr"]; }