From cff28b207082dbbbea4006e3aad4ce22c9887ce1 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 23 Jun 2022 22:00:49 +0200 Subject: [PATCH] add i.reddit.com to reddit_domain_regex --- files/helpers/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index 3055d8586..d976c72b4 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -1027,6 +1027,6 @@ 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|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) def make_name(*args, **kwargs): return request.base_url