From e1508f40e8c6786966cc36dd1291cce78acfc952 Mon Sep 17 00:00:00 2001 From: Ruby Date: Sun, 12 May 2024 17:44:41 +0200 Subject: [PATCH] make answers not weird if they have | in them why would you ever have | in a poll answer?? --- backend/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/utils.ts b/backend/src/utils.ts index 5cc7a1991..d0ab63ccf 100644 --- a/backend/src/utils.ts +++ b/backend/src/utils.ts @@ -1332,7 +1332,7 @@ export function messageSummary(msg: SavedMessage) { "Poll: ```" + escapeCodeBlock( `Question: ${poll.question.text} - Answers: ${poll.answers.map((answer) => answer.text).join(" | ")}`, + Answers: ${poll.answers.map((answer) => `"${answer.text}"`).join(" | ")}`, ) + "```"; }