Skip to content

Commit

Permalink
fix(parser): update w date parser for t
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Nov 30, 2024
1 parent 0b7c5f1 commit 91e9674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/date_parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ const wDatePatternS = `${option1}|${option2}`;

// date like 1-) 16-22 de december de 2024; or 2) Estudo para a semana de 28 de outubro-3 de novembro de 2024; or 3) 30 de december de 2024-5 de january de 2025
option1 = `(\\d{1,2})[-](?:\\d{1,2})? de (${wordWithDiacritics}) de (\\d{4})`;
option2 = `(\\d{1,2}) de (${wordWithDiacritics})[-](?:\\d{1,2})? de (?:${wordWithDiacritics}) de (\\d{4})`;
option2 = `(\\d{1,2}) de (${wordWithDiacritics})[-](?:\\d{1,2})?(?:.º)? de (?:${wordWithDiacritics}) de (\\d{4})`;
option3 = `(\\d{1,2}) de (${wordWithDiacritics}) de (\\d{4})`;
const wDatePatternT = `${option1}|${option2}|${option3}`;

Expand Down

0 comments on commit 91e9674

Please sign in to comment.