Skip to content

Commit

Permalink
make answers not weird if they have | in them
Browse files Browse the repository at this point in the history
why would you ever have | in a poll answer??
  • Loading branch information
rubyowo committed May 12, 2024
1 parent 6d87734 commit e1508f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(" | ")}`,
) +
"```";
}
Expand Down

0 comments on commit e1508f4

Please sign in to comment.