removed the unicode flag from the regexes
This commit is contained in:
@@ -28,11 +28,11 @@ class RoboPage(discord.Client):
|
|||||||
self.jokes = list(attrs)
|
self.jokes = list(attrs)
|
||||||
self.most_regex = re.compile(
|
self.most_regex = re.compile(
|
||||||
"^who is the most\s+(?P<emoji>\S+)\s*?(?:in the past (?P<days>\d+) days)?\??$",
|
"^who is the most\s+(?P<emoji>\S+)\s*?(?:in the past (?P<days>\d+) days)?\??$",
|
||||||
re.IGNORECASE & re.UNICODE,
|
re.IGNORECASE,
|
||||||
)
|
)
|
||||||
self.leaderboard_regex = re.compile(
|
self.leaderboard_regex = re.compile(
|
||||||
'^most (?P<emoji>\S+) (leaderboard|((?:.+?(?P<days>\d+) days)))',
|
'^most\s*?(?P<emoji>\S+?)\s*?(leaderboard|((?:.+?(?P<days>\d+) days)))',
|
||||||
re.IGNORECASE & re.UNICODE
|
re.IGNORECASE
|
||||||
)
|
)
|
||||||
|
|
||||||
async def handle_ready(self):
|
async def handle_ready(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user