From 49c4a46a950608c8f9b508fb7bc34456ead147d2 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 9 Feb 2021 16:58:48 -0500 Subject: [PATCH] Fix --- commands/games-sp/typing-test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/games-sp/typing-test.js b/commands/games-sp/typing-test.js index bf4f1379..f1727520 100644 --- a/commands/games-sp/typing-test.js +++ b/commands/games-sp/typing-test.js @@ -42,7 +42,8 @@ module.exports = class TypingTestCommand extends Command { if (msgs.first().content.toLowerCase() !== sentence) { const diff = new Diff(); const textDiff = diff.main(msgs.first().content.toLowerCase(), sentence); - const formatted = diff.cleanupSemantic(textDiff).map(change => { + diff.cleanupSemantic(textDiff); + const formatted = textDiff.map(change => { if (change[0] === 1) return `**${change[1]}**`; if (change[0] === 0) return change[1]; return '';