From e5bed4fa29497b6707db9390f730f9d1b0c6f8c1 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 17 Oct 2023 12:14:39 +0300 Subject: [PATCH] allow < and > in option body --- 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 c696c6b82..a44f76ff8 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -34,7 +34,7 @@ query_regex = re.compile("(\w+):(\S+)", flags=re.A) poll_regex = re.compile("(^|\n|>)\$\$([^\$\n]+)\$\$\s*?" + NOT_IN_CODE_OR_LINKS, flags=re.A) bet_regex = re.compile("(^|\n|>)##([^#\n]+)##\s*?" + NOT_IN_CODE_OR_LINKS, flags=re.A) -choice_regex = re.compile("(^|\n|>)&&([^&\n]+)&&\s*?" + NOT_IN_CODE_OR_LINKS, flags=re.A) +choice_regex = re.compile("(^|\n|>)&&([^\n]+?)&&\s*?" + NOT_IN_CODE_OR_LINKS, flags=re.A) html_comment_regex = re.compile("", flags=re.A)