From 453b4321283ddf34010e296fea028824ce4d3218 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 24 Mar 2024 21:12:08 -0400 Subject: [PATCH] Fix --- commands/edit-text/yoda.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-text/yoda.js b/commands/edit-text/yoda.js index 707399ff..5c350ca9 100644 --- a/commands/edit-text/yoda.js +++ b/commands/edit-text/yoda.js @@ -51,7 +51,7 @@ module.exports = class YodaCommand extends Command { } newSentences = newSentences.map(sentence => { const split = sentence.split(' '); - return split.map((word, i) => i === 0 || word === 'i' ? firstUpperCase(word) : word); + return split.map((word, i) => i === 0 || word === 'i' ? firstUpperCase(word) : word).join(' '); }); return `${newSentences.join('. ').trim()} ${ends[Math.floor(Math.random() * ends.length)]}`; }