fix(normalizer): require day-dot in English month-first matcher (structural anti-shadow)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-05-25 13:53:05 +02:00
parent 53a661adb6
commit 59715bdccd
2 changed files with 3 additions and 2 deletions

View File

@@ -157,7 +157,8 @@ def _match_monthname_a(s):
return _build_day_month_year(int(m.group(1)), _lookup_month(m.group(2)), expand_year(m.group(3)))
_MONTH_B_RE = re.compile(r"([A-Za-zÄÖÜäöü]+)\.?\s*(\d{1,2})\.?\s*(\d{2,4})")
# dot after day is REQUIRED so this can't match "Mai 1895" (MONTH YYYY) as day=18
_MONTH_B_RE = re.compile(r"([A-Za-zÄÖÜäöü]+)\.?\s*(\d{1,2})\.\s*(\d{2,4})")
def _match_monthname_b(s):