From e375e44645a01c56fa959411a4a0c3d92cb77b4f Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 14 Sep 2023 03:23:24 +0300 Subject: [PATCH] remove unnecessary dashes --- files/helpers/regex.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/helpers/regex.py b/files/helpers/regex.py index d0518a704..ed96f3f10 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -43,7 +43,7 @@ title_regex = re.compile("[^\w ]", flags=re.A) controversial_regex = re.compile('https:\/\/old\.reddit\.com/r/\w{2,20}\/comments\/[\w\-.#&/=\?@%+]{5,250}', flags=re.A) spoiler_regex = re.compile('\|\|(.+?)\|\|' + NOT_IN_CODE_OR_LINKS, flags=re.A) -sub_regex = re.compile('(?|")~{1,2}([^~]+)~{1,2}' + NOT_IN_CODE_OR_LINKS, flags=re.A) @@ -231,10 +231,10 @@ asset_image_link_regex = re.compile(f"https:\/\/(i\.)?{SITE}\/assets\/images\/[\ #sanitizing reddit_mention_regex = re.compile('(?|")https:\/\/old.reddit.com\/(r|u|user)\/', flags=re.A)