Skip to content

Fix short weekday names#1214

Merged
Gallaecio merged 10 commits intomasterfrom
fix-short-weekday-names-1170
Jan 8, 2026
Merged

Fix short weekday names#1214
Gallaecio merged 10 commits intomasterfrom
fix-short-weekday-names-1170

Conversation

@adnan-awan
Copy link
Copy Markdown
Contributor

@adnan-awan adnan-awan commented Jan 28, 2024

Fixes #1170

@adnan-awan adnan-awan requested review from Gallaecio and wRAR January 28, 2024 14:13
@wRAR
Copy link
Copy Markdown
Member

wRAR commented Jan 29, 2024

Please check https://github.com/scrapinghub/dateparser/blob/master/CONTRIBUTING.rst#guidelines-for-editing-translation-data about editing language data (you edited a generated file).

@adnan-awan adnan-awan closed this Jan 30, 2024
@adnan-awan adnan-awan force-pushed the fix-short-weekday-names-1170 branch from 1e4c73c to 30e2c7f Compare January 30, 2024 05:33
- Update en.yaml file to support two letters days of the week
- #1170
@adnan-awan adnan-awan reopened this Jan 30, 2024
@Gallaecio
Copy link
Copy Markdown
Contributor

Any idea about the failing test?

- Develop method to remove_multiple_occurrences of the day(s) of the week
- #1170
@Gallaecio
Copy link
Copy Markdown
Contributor

Could you add tests for the fix itself? (7 dates with the short weekday form that are properly parsed) I think that’s all that’s left.

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.60%. Comparing base (6b23348) to head (bf82cd3).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1214   +/-   ##
=======================================
  Coverage   96.60%   96.60%           
=======================================
  Files         235      235           
  Lines        2886     2889    +3     
=======================================
+ Hits         2788     2791    +3     
  Misses         98       98           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

adnan-awan and others added 2 commits January 7, 2026 00:01
- improve the tokenization to handle suffixes like "th", "st", "nd", "rd" attached to numbers
- remove remove_multiple_occurrences this method
- fix tests to use the current year instead of 2025
- #1170
@Gallaecio
Copy link
Copy Markdown
Contributor

Thank you!

@Gallaecio Gallaecio merged commit 920d725 into master Jan 8, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parsing very short weekday names

3 participants