From 461eba74279ff9798f2e33e7eb27ed5bfc8c518b Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 1 Jul 2022 01:06:39 +0200 Subject: [PATCH] fix issue with reddit domain replacement --- 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 aaa142433..fa67a3bf3 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -90,7 +90,7 @@ ascii_only_regex = re.compile("[ -~]+", flags=re.A) twitter_to_nitter_regex = re.compile("https:\/\/twitter.com\/(\w{4,15}(\/status\/\d+[^/]*)?)", flags=re.A) -reddit_domain_regex = re.compile("(^|\s|\()https:\/\/(reddit\.com|new\.reddit.com|www\.reddit.com|i\.reddit\.com|redd\.it|libredd\.it|teddit\.net)\/r\/", flags=re.A) +reddit_domain_regex = re.compile("(^|\s|\()https?:\/\/(reddit\.com|new\.reddit.com|www\.reddit.com|i\.reddit\.com|redd\.it|libredd\.it|teddit\.net)\/r\/", flags=re.A) color_regex = re.compile("[a-z0-9]{6}", flags=re.A)