From 28a1fa6716fff307188f1b57158db8445d2db7ef Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 21 May 2017 15:55:47 +0000 Subject: [PATCH] More Replacements in Anime and Manga --- commands/search/anime.js | 3 ++- commands/search/manga.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/commands/search/anime.js b/commands/search/anime.js index 04085c53..24ccf419 100644 --- a/commands/search/anime.js +++ b/commands/search/anime.js @@ -40,7 +40,8 @@ module.exports = class AnimeCommand extends Command { .replace(/(—)/g, '—') .replace(/(")/g, '"') .replace(/(&)/g, '&') - .replace(/(")/g, '"'); + .replace(/(")/g, '"') + .replace(/(\[i\]|\[\/i\])/g, '*'); const embed = new RichEmbed() .setColor(0x2D54A2) .setAuthor('My Anime List', 'https://i.imgur.com/R4bmNFz.png') diff --git a/commands/search/manga.js b/commands/search/manga.js index cefea314..6df549bb 100644 --- a/commands/search/manga.js +++ b/commands/search/manga.js @@ -40,7 +40,8 @@ module.exports = class MangaCommand extends Command { .replace(/(—)/g, '—') .replace(/(")/g, '"') .replace(/(&)/g, '&') - .replace(/(")/g, '"'); + .replace(/(")/g, '"') + .replace(/(\[i\]|\[\/i\])/g, '*'); const embed = new RichEmbed() .setColor(0x2D54A2) .setAuthor('My Anime List', 'https://i.imgur.com/R4bmNFz.png')