From 898cb5ec46912e38c9654a4d886fec229815b922 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 21 May 2024 02:30:22 +0300 Subject: [PATCH] fix this https://rdrama.net/h/slackernews/post/270574/dont-make-out-with-bay-area/6433251#context --- 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 bc748206a..b5dbb8e74 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -188,7 +188,7 @@ def command_regex_matcher(match): reason_regex_post = re.compile('(/post/[0-9]+)', flags=re.A) reason_regex_comment = re.compile('(/comment/[0-9]+)', flags=re.A) -numbered_list_regex = re.compile('((\n|^)>*[0-9]+)[\.)] ', flags=re.A) +numbered_list_regex = re.compile('((\n|^)[> ]*[0-9]+)[\.)] ', flags=re.A) image_link_regex = re.compile(f"https:\/\/(i\.)?{SITE}\/(chat_)?images\/[0-9]{{11,17}}r?\.webp", flags=re.A)