From 4949afb574b7c1a071e85d92f61499b5fd62a2a4 Mon Sep 17 00:00:00 2001 From: rhahao <26148770+rhahao@users.noreply.github.com> Date: Sat, 9 Nov 2024 23:36:49 +0300 Subject: [PATCH] chore(locales): update date rules for some language --- src/common/date_parser.ts | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/common/date_parser.ts b/src/common/date_parser.ts index 2eb81b0b..b5cc1730 100644 --- a/src/common/date_parser.ts +++ b/src/common/date_parser.ts @@ -324,26 +324,6 @@ const wParsingJ = (groups: string[]): WDateParsingResult => { return [year, month, date]; }; -const wParsingTW = (groups: string[]): WDateParsingResult => { - let date: string, month: string, year: string; - - if (groups[1]) { - month = groups[1]; - date = groups[2]; - year = groups[3]; - } else if (groups[4]) { - month = groups[4]; - date = groups[5]; - year = groups[6]; - } else { - month = groups[7]; - date = groups[8]; - year = groups[9]; - } - - return [year, month, date]; -}; - const wDateParsing: WDateParsing = { common: wParsingCommon, CH: wParsingJ, @@ -354,7 +334,7 @@ const wDateParsing: WDateParsing = { PGW: wParsingE, SW: wParsingE, TG: wParsingE, - TW: wParsingTW, + TW: wParsingE, }; // #endregion