Skip to content

Commit 2bae812

Browse files
committed
Accept a comma after the month in day-first dates
Wikipedia EPYC tables write "10 Oct, 2024", which fell through to the year-only fallback (2024-01-01).
1 parent 80ca850 commit 2bae812

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎app/ingest/normalize.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
re.IGNORECASE,
4444
)
4545
_SHORT_DATE_RE = re.compile(
46-
r"\b(\d{1,2})\s+" + _MONTH_NAME + r"\s+(\d{4})\b",
46+
r"\b(\d{1,2})\s+" + _MONTH_NAME + r",?\s+(\d{4})\b",
4747
re.IGNORECASE,
4848
)
4949
_QUARTER_RE = re.compile(r"\bQ([1-4])\s*'?(\d{2}|\d{4})\b", re.IGNORECASE)

0 commit comments

Comments
 (0)