mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 14:11:50 +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:
parent
289b7cc79a
commit
a4d5ec7a0e
1 changed files with 1 additions and 1 deletions
|
@ -1332,7 +1332,7 @@ export function messageSummary(msg: SavedMessage) {
|
||||||
"Poll: ```" +
|
"Poll: ```" +
|
||||||
escapeCodeBlock(
|
escapeCodeBlock(
|
||||||
`Question: ${poll.question.text}
|
`Question: ${poll.question.text}
|
||||||
Answers: ${poll.answers.map((answer) => answer.text).join(" | ")}`,
|
Answers: ${poll.answers.map((answer) => `"${answer.text}"`).join(" | ")}`,
|
||||||
) +
|
) +
|
||||||
"```";
|
"```";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue