From e1e9da83405f26163fc7b27c7d4e870a8102ff0d Mon Sep 17 00:00:00 2001 From: jsl12 Date: Sun, 15 Aug 2021 23:14:18 -0500 Subject: [PATCH] removed the unicode flag from the regexes --- robopage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/robopage.py b/robopage.py index 8af2f2e..c50d488 100644 --- a/robopage.py +++ b/robopage.py @@ -28,11 +28,11 @@ class RoboPage(discord.Client): self.jokes = list(attrs) self.most_regex = re.compile( "^who is the most\s+(?P\S+)\s*?(?:in the past (?P\d+) days)?\??$", - re.IGNORECASE & re.UNICODE, + re.IGNORECASE, ) self.leaderboard_regex = re.compile( - '^most (?P\S+) (leaderboard|((?:.+?(?P\d+) days)))', - re.IGNORECASE & re.UNICODE + '^most\s*?(?P\S+?)\s*?(leaderboard|((?:.+?(?P\d+) days)))', + re.IGNORECASE ) async def handle_ready(self):