From 54975c68491b090d4a610977b61b648eae5b5108 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 22 Feb 2022 16:11:33 +0200 Subject: [PATCH] fds --- files/routes/comments.py | 4 ++-- files/routes/posts.py | 4 ++-- files/templates/formatting.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 2896cdf2e..6e7f3c7b7 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -198,7 +198,7 @@ def api_comment(v): body = body.replace(i.group(0), "") choices = [] - for i in re.finditer('\s*##([^\$\n]+)##\s*', body, re.A): + for i in re.finditer('\s*&&([^\$\n]+)&&\s*', body, re.A): choices.append(i.group(1)) body = body.replace(i.group(0), "") @@ -729,7 +729,7 @@ def edit_comment(cid, v): g.db.add(c_option) if not c.choices: - for i in re.finditer('\s*##([^\$\n]+)##\s*', body, re.A): + for i in re.finditer('\s*&&([^\$\n]+)&&\s*', body, re.A): body = body.replace(i.group(0), "") c_choice = Comment(author_id=AUTOCHOICE_ID, parent_submission=c.parent_submission, diff --git a/files/routes/posts.py b/files/routes/posts.py index 7d2572eff..5ac5e876b 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -511,7 +511,7 @@ def edit_post(pid, v): g.db.add(c) if not p.choices.count(): - for i in re.finditer('\s*##([^\$\n]+)##\s*', body, re.A): + for i in re.finditer('\s*&&([^\$\n]+)&&\s*', body, re.A): body = body.replace(i.group(0), "") c = Comment(author_id=AUTOCHOICE_ID, parent_submission=p.id, @@ -1054,7 +1054,7 @@ def submit_post(v, sub=None): body = body.replace(i.group(0), "") choices = [] - for i in re.finditer('\s*##([^\$\n]+)##\s*', body, re.A): + for i in re.finditer('\s*&&([^\$\n]+)&&\s*', body, re.A): choices.append(i.group(1)) body = body.replace(i.group(0), "") diff --git a/files/templates/formatting.html b/files/templates/formatting.html index 47160c765..b4f5f2240 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -107,7 +107,7 @@ You can use Markdown formatting: Poll Options (can select only 1 option) - ##bussy## ##gussy## + &&bussy&& &&gussy&&