From c5511541d5d9779de67be82c04d9519c57c37526 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 17 Sep 2023 22:33:57 +0300 Subject: [PATCH] apparently s_urls are a thing in profile posts too https://rdrama.net/post/204924 --- 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 ca5dcc2e2..857de03fc 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -250,7 +250,7 @@ reddit_domain_regex = re.compile("(^|\s|\()https?:\/\/(reddit\.com|(?:(?:[A-z]{2 reddit_comment_link_regex = re.compile("https:\/\/old.reddit.com\/r\/\w{2,25}\/comments(\/\w+){3}\/?", flags=re.A) #gevent -reddit_s_url_regex = re.compile("https:\/\/reddit.com\/r\/\w{2,25}\/s\/\w{10}", flags=re.A) +reddit_s_url_regex = re.compile("https:\/\/reddit.com\/[ru]\/\w{2,25}\/s\/\w{10}", flags=re.A) #run-time reddit_to_vreddit_regex = re.compile('(^|>|")https:\/\/old.reddit.com\/(r|u|user)\/', flags=re.A)