From a4071ba6b608c9507fa370cc91634ada3d02431e Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 29 Sep 2023 07:12:41 +0300 Subject: [PATCH] remove numbered lists generated by "1)" --- 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 eebe9b3b2..0d1f5da55 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -165,7 +165,7 @@ def command_regex_matcher(match, upper=False): 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('((\s|^)[0-9]+)\. ', flags=re.A) +numbered_list_regex = re.compile('((\s|^)[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)