From bd712dabfe21aa4d3848b7aa7b0eecbc08a9c944 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 4 Apr 2022 22:05:10 +0200 Subject: [PATCH] fgd --- files/helpers/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index 493f21e729..aa88b3fe75 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -698,7 +698,7 @@ unlinked_regex = re.compile('''(^|\s|

)(https:\/\/[\w\-.#&/=\?@%+]+)''', flags imgur_regex = re.compile('(https://i\.imgur\.com/([a-z0-9]+))\.(jpg|png|jpeg|webp)(?!)', flags=re.I|re.A) reddit_regex = re.compile('(^|\s|

)\/?((r|u)\/(\w|-){3,25})', flags=re.A) sub_regex = re.compile('(^|\s|

)\/?(h\/(\w|-){3,25})', flags=re.A) -youtube_regex = re.compile('" target="_blank">(https://youtube\.com/watch\?v\=([a-z0-9-_]+)[\w\-.#&/=\?@%+]+)(?!)', flags=re.I|re.A) +youtube_regex = re.compile('" target="_blank">(https:\/\/youtube\.com\/watch\?v\=([a-z0-9-_]{5,20})[\w\-.#&/=\?@%+]*)(?!)', flags=re.I|re.A) strikethrough_regex = re.compile('''~{1,2}([^~/'"]+)~{1,2}''', flags=re.A) mute_regex = re.compile("/mute @([a-z0-9_\-]{3,25}) ([0-9])+", flags=re.A)