Skip to content

Commit

Permalink
Fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-bergia committed Jul 10, 2023
1 parent f21bb49 commit 99768eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reminder.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

CONFIG = {
"ts_stream_id": 311658,
"zoom_url_regex": re.compile('https://cern.zoom.us/j/\d+?pwd=\w+'),
"zoom_url_regex": re.compile('https://cern.zoom.us/j/\d+\?pwd=\w+'),
}


Expand Down Expand Up @@ -102,7 +102,7 @@ def zoom_meeting_url(self):
lambda s: s["stream_id"] == CONFIG["ts_stream_id"],
response["streams"],
))
match = CONFIG["zoom_url_regex"].match(stream["description"])
match = CONFIG["zoom_url_regex"].search(stream["description"])

return match.group()

Expand Down

0 comments on commit 99768eb

Please sign in to comment.