Skip to content

Commit

Permalink
chore(locales): update date rules for some language
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Nov 9, 2024
1 parent a749a8b commit 4949afb
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions src/common/date_parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -354,7 +334,7 @@ const wDateParsing: WDateParsing = {
PGW: wParsingE,
SW: wParsingE,
TG: wParsingE,
TW: wParsingTW,
TW: wParsingE,
};

// #endregion
Expand Down

0 comments on commit 4949afb

Please sign in to comment.