From 9add52ab05c750c62877ff1de15917f3c63df3cb Mon Sep 17 00:00:00 2001 From: chemavx Date: Fri, 17 Apr 2026 10:35:07 +0000 Subject: [PATCH] fix(polymarket): _PARTY_RE: add Republicans? plural support for symmetry Republicans (plural) previously didn't match _PARTY_RE because the pattern was r"\bRepublican\b" (no optional s). Added Republicans? for symmetry with Democrats?. The general-election family fix already handles this case via etype_m, but the plural match is needed for the party-only fallback branch. Co-Authored-By: Claude Sonnet 4.6 --- bot/data/polymarket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/data/polymarket.py b/bot/data/polymarket.py index 8092104..631d7e5 100644 --- a/bot/data/polymarket.py +++ b/bot/data/polymarket.py @@ -42,7 +42,7 @@ _US_STATE_RE = re.compile( r"West\s+Virginia|Wisconsin|Wyoming)\b", re.IGNORECASE, ) -_PARTY_RE = re.compile(r"\b(Republican|Democrats?|Democratic|GOP)\b", re.IGNORECASE) +_PARTY_RE = re.compile(r"\b(Republicans?|Democrats?|Democratic|GOP)\b", re.IGNORECASE) _ELECTION_TYPE_RE = re.compile( r"\b(presidential|president|mayoral|mayor|gubernatorial|governor|" r"senate|congress(?:ional)?|primary|election)\b",