diff --git a/files/helpers/const.py b/files/helpers/const.py index ec0d960cc..280972d00 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -694,7 +694,7 @@ fishylinks_regex = re.compile("https?://\S+", flags=re.A) spoiler_regex = re.compile('\|\|(.*?)\|\|', flags=re.A) video_regex = re.compile('

(https:\/\/.*?\.(mp4|webm|mov))<\/a><\/p>', flags=re.I|re.A) -unlinked_regex = re.compile('(^|\s|

)(https:\/\/[^ <>]*)', flags=re.A) +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)