diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 1b8647c9c..6dcb7c5e1 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -122,7 +122,7 @@ imgur_regex = re.compile(f'(https:\/\/i\.imgur\.com\/[a-z0-9]+)\.({image_regex_e giphy_regex = re.compile('(https:\/\/media\.giphy\.com\/media\/[a-z0-9]+\/giphy)\.gif', flags=re.I|re.A) -youtube_regex = re.compile('(

[^<]*)(https:\/\/youtube\.com\/watch\?[\w\-.#&/=?@%+]{7,})', flags=re.I|re.A) +youtube_regex = re.compile('((

|