3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

make answers not weird if they have | in them

why would you ever have | in a poll answer??
This commit is contained in:
Ruby 2024-05-12 17:44:41 +02:00
parent 289b7cc79a
commit a4d5ec7a0e
No known key found for this signature in database
GPG key ID: 74D9DB37B03A4804

View file

@ -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(" | ")}`,
) +
"```";
}