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: