From c99995d48fe51e2027f6ea5e34a12ce7dabdb8fb Mon Sep 17 00:00:00 2001 From: dragonfire535 Date: Sun, 12 Mar 2017 00:23:30 -0500 Subject: [PATCH] Proper \n Splitting in Wikipedia Command --- commands/search/wikipedia.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/wikipedia.js b/commands/search/wikipedia.js index 892ba5cf..7ca1d2f1 100644 --- a/commands/search/wikipedia.js +++ b/commands/search/wikipedia.js @@ -34,7 +34,7 @@ class WikipediaCommand extends commando.Command { message.channel.sendMessage(":x: Error! Entry Not Found!"); } else { description = description.substr(0, 1900); - description = description.replace(/\n/, "\n\n"); + description = description.split('\n').join("\n\n"); if(description.length > 1900) { const embed = new Discord.RichEmbed() .setColor(0xE7E7E7)