diff --git a/files/helpers/const.py b/files/helpers/const.py index 74f3adbd64..038b2fc846 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -698,7 +698,7 @@ unlinked_regex = re.compile('(^|\s|
)(https:\/\/[^ <>]*)', flags=re.A) imgur_regex = re.compile('(https://i\.imgur\.com/([^_]*?))\.(jpg|png|jpeg|webp)(?!)', flags=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\=(.*?))(?!)', flags=re.A) +youtube_regex = re.compile('" target="_blank">(https://youtube\.com/watch\?v\=([a-z0-9-_]+).*?)(?!)', 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)