This commit is contained in:
doms9 2025-10-03 19:59:17 -04:00
parent 4fbbdc0779
commit 00000d903a

View file

@ -99,7 +99,7 @@ class Leagues:
return (None, self.live_img) return (None, self.live_img)
def is_valid(self, event: str, league: str) -> bool: def is_valid(self, event: str, league: str) -> bool:
if match := re.search(r"(\-|vs.?)", event): if match := re.search(r"(\-|vs.?|at)", event):
t1, t2 = event.split(match[1]) t1, t2 = event.split(match[1])
return any(t in self.teams(league) for t in (t1.strip(), t2.strip())) return any(t in self.teams(league) for t in (t1.strip(), t2.strip()))