e
This commit is contained in:
parent
4fbbdc0779
commit
00000d903a
1 changed files with 1 additions and 1 deletions
|
|
@ -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()))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue