From 3f2ec8abb92ef2029d2b24847d5f7e81c9450bea Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Mon, 15 Nov 2021 23:59:31 +0100 Subject: [PATCH] Fixed bold markup in Trivia. --- src/games/trivia.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/games/trivia.js b/src/games/trivia.js index 59b1d2c..4146a19 100644 --- a/src/games/trivia.js +++ b/src/games/trivia.js @@ -47,7 +47,7 @@ async function playRound(context, round = 0) { }); // replace space with U+2003 Em Space to separate words, since a single space separates the placeholders, and double spaces are removed during Markdown render - context.sendMessage(`**${Math.floor(game.timeout / 3) * 2} seconds** left, first hint for **question ${round + 1}/${game.questions.length}**: ${question.answer.slice(0, 1)} ${question.answer.slice(1).replace(/\s/g, ' ').replace(/[^\s]/g, '_ ')}`, context.room.id); + context.sendMessage(`**${Math.floor(game.timeout / 3) * 2} seconds** left, first hint for **question ${round + 1}/${game.questions.length}**: **${question.answer.slice(0, 1)} ${question.answer.slice(1).replace(/\s/g, ' ').replace(/[^\s]/g, '_ ').trim()}**`, context.room.id); await timers.setTimeout((game.timeout / 3) * 1000, null, { signal: ac.signal,