From 20f2db34e9ad5a2fc771a3c8c9a7b6df77563123 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 29 Sep 2023 09:27:59 +0300 Subject: [PATCH] make a comment like this embed https://rdrama.net/h/countryclub/post/207073/-/5059583#context --- files/helpers/regex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 0d1f5da55..3c32b3a52 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -195,7 +195,7 @@ subreddit_name_regex = re.compile('\w{2,25}', flags=re.A) ###YOUTUBE #sanitize -youtube_regex = re.compile('https:\/\/youtube\.com\/watch\?v=[\w-]{11}[\w&;=]*<\/a>' + NOT_IN_CODE_OR_LINKS, flags=re.I|re.A) +youtube_regex = re.compile('(https:\/\/)?youtube\.com\/watch\?v=[\w-]{11}[\w&;=]*<\/a>' + NOT_IN_CODE_OR_LINKS, flags=re.I|re.A) #sanitize and song yt_id_regex = re.compile('[\w-]{11}', flags=re.A)