From c380572c13c6e02134c79f216fcc34c3bba5032c Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 21 Jan 2023 02:21:51 +0200 Subject: [PATCH] fix posting --- files/helpers/regex.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/helpers/regex.py b/files/helpers/regex.py index da002b784a..e32ccd778b 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -107,7 +107,8 @@ color_regex = re.compile("[a-f0-9]{6}", flags=re.A) # lazy match on the {}?, only match if there is trailing stuff # Specifically match Snappy's way of formatting, this might break some losers' comments. -showmore_regex = re.compile(r"^((.{3000,}?|(.*?<.*?){10,})?<\/p>(?:<\/li><\/ul>)?)(\s*

.*)", flags=re.A|re.DOTALL) +# showmore_regex = re.compile(r"^((.{3000,}?|(.*?<.*?){10,})?<\/p>(?:<\/li><\/ul>)?)(\s*

.*)", flags=re.A|re.DOTALL) +showmore_regex = re.compile(r"^(.{3000,}?

(?:)?)(\s*

.*)", flags=re.A|re.DOTALL) search_token_regex = re.compile('"([^"]*)"|(\S+)', flags=re.A)