From 314880fb1b4c19f0aa7534f5f2114a2777681525 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 12 Mar 2023 19:43:43 +0200 Subject: [PATCH] fix bad regex --- 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 60c0b0367..40f2e8268 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -31,9 +31,9 @@ valid_sub_regex = re.compile("^[a-zA-Z0-9_\-]{3,25}$", flags=re.A) query_regex = re.compile("(\w+):(\S+)", flags=re.A) -poll_regex = re.compile("^*\$\$([^\$\n]+)\$\$\s*(?!([^<]*<\/(code|pre|a)>|[^`]*`))", flags=re.A) -bet_regex = re.compile("^*##([^\!\n]+)##\s*(?!([^<]*<\/(code|pre|a)>|[^`]*`))", flags=re.A) -choice_regex = re.compile("^*&&([^\&\n]+)&&\s*(?!([^<]*<\/(code|pre|a)>|[^`]*`))", flags=re.A) +poll_regex = re.compile("^\$\$([^\$\n]+)\$\$\s*(?!([^<]*<\/(code|pre|a)>|[^`]*`))", flags=re.A) +bet_regex = re.compile("^##([^\!\n]+)##\s*(?!([^<]*<\/(code|pre|a)>|[^`]*`))", flags=re.A) +choice_regex = re.compile("^&&([^\&\n]+)&&\s*(?!([^<]*<\/(code|pre|a)>|[^`]*`))", flags=re.A) html_comment_regex = re.compile("", flags=re.A)