Skip to content

Commit a4d5ec7

Browse files
committed
make answers not weird if they have | in them
why would you ever have | in a poll answer??
1 parent 289b7cc commit a4d5ec7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ export function messageSummary(msg: SavedMessage) {
13321332
"Poll: ```" +
13331333
escapeCodeBlock(
13341334
`Question: ${poll.question.text}
1335-
Answers: ${poll.answers.map((answer) => answer.text).join(" | ")}`,
1335+
Answers: ${poll.answers.map((answer) => `"${answer.text}"`).join(" | ")}`,
13361336
) +
13371337
"```";
13381338
}

0 commit comments

Comments
 (0)