fix patting users with "_" and "-" in their username

master
Aevann 2023-04-23 15:18:25 +02:00
parent ca09b729b7
commit 62b9cb6ae2
1 changed files with 3 additions and 3 deletions

View File

@ -50,9 +50,9 @@ strikethrough_regex = re.compile('(^|\s|>)~{1,2}([^~]+)~{1,2}(?!([^<]*<\/(code|p
mute_regex = re.compile("\/mute @?([a-z0-9_\-]{3,30}) ([0-9]+)", flags=re.A|re.I)
emoji_regex = re.compile(f"<p>\s*(:[!#@a-zA-Z0-9]{{1,36}}:\s*)+<\/p>", flags=re.A)
emoji_regex2 = re.compile(f'(?<!"):([!#@a-zA-Z0-9]{{1,36}}?):(?!([^<]*<\/(code|pre|a)>|[^`]*`))', flags=re.A)
emoji_regex3 = re.compile(f'(?<!"):([!@a-zA-Z0-9]{{1,35}}?):', flags=re.A)
emoji_regex = re.compile(f"<p>\s*(:[!#@a-zA-Z0-9_\-]{{1,36}}:\s*)+<\/p>", flags=re.A)
emoji_regex2 = re.compile(f'(?<!"):([!#@a-zA-Z0-9_\-]{{1,36}}?):(?!([^<]*<\/(code|pre|a)>|[^`]*`))', flags=re.A)
emoji_regex3 = re.compile(f'(?<!"):([!@a-zA-Z0-9_\-]{{1,35}}?):', flags=re.A)
snappy_url_regex = re.compile('<a href="(https?:\/\/.+?)".*?>(.+?)<\/a>', flags=re.A)
snappy_youtube_regex = re.compile('<lite-youtube videoid="(.+?)" params="autoplay=1', flags=re.A)