From 1e5e7758242d761bf92656805d2e85762f503468 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 1 Nov 2018 20:40:49 +0000 Subject: [PATCH] Better linebreaks in anime/manga --- commands/search/anime.js | 2 +- commands/search/manga.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/search/anime.js b/commands/search/anime.js index 872e9c2c..9f283218 100644 --- a/commands/search/anime.js +++ b/commands/search/anime.js @@ -58,7 +58,7 @@ module.exports = class AnimeCommand extends Command { .setURL(`https://anilist.co/anime/${anime.id}`) .setThumbnail(anime.coverImage.large || null) .setTitle(anime.title.userPreferred) - .setDescription(shorten(anime.description.replace(/
/g, '\n'))) + .setDescription(shorten(anime.description.replace(/(
)+/g, '\n'))) .addField('❯ Status', anime.status, true) .addField('❯ Episodes', anime.episodes, true) .addField('❯ Season', `${anime.season} ${anime.startDate.year}`, true) diff --git a/commands/search/manga.js b/commands/search/manga.js index 8b13f1dd..60c6b185 100644 --- a/commands/search/manga.js +++ b/commands/search/manga.js @@ -58,7 +58,7 @@ module.exports = class MangaCommand extends Command { .setURL(`https://anilist.co/manga/${manga.id}`) .setThumbnail(manga.coverImage.large || null) .setTitle(manga.title.userPreferred) - .setDescription(shorten(manga.description.replace(/
/g, '\n'))) + .setDescription(shorten(manga.description.replace(/(
)+/g, '\n'))) .addField('❯ Status', manga.status, true) .addField('❯ Chapters / Volumes', `${manga.chapters || '???'}/${manga.volumes || '???'}`, true) .addField('❯ Year', manga.startDate.year, true) diff --git a/package.json b/package.json index 449c191d..df7cb4fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "97.0.0", + "version": "97.0.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {