From 51fce1b261b4c953a2df03e33e519700e2c404f0 Mon Sep 17 00:00:00 2001 From: rgcosta Date: Sun, 12 Apr 2026 15:15:17 +0000 Subject: [PATCH] Update scraper/scraper.py Match score at start of string only, max 2 digits each side --- scraper/scraper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper/scraper.py b/scraper/scraper.py index 6abd755..821232e 100644 --- a/scraper/scraper.py +++ b/scraper/scraper.py @@ -127,7 +127,7 @@ def scrape() -> list[dict]: time_str = "TBD" if is_past: # Extract just the score digits, ignore leg/aggregate text - score_match = re.search(r"(\d+)\s*-\s*(\d+)", mid_text) + score_match = re.match(r"^(\d{1,2})\s*-\s*(\d{1,2})", mid_text) if score_match: score_str = f"{score_match.group(1)}-{score_match.group(2)}" else: