diff --git a/files/helpers/regex.py b/files/helpers/regex.py index af7ceb4c4..da65f18fe 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -252,7 +252,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)