From 9de62244d42b36c0790da479d7e76189d6adfd34 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 18 Oct 2018 00:58:12 +0000 Subject: [PATCH] Replace [] in urban dictionary definitions --- commands/search/urban-dictionary.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/search/urban-dictionary.js b/commands/search/urban-dictionary.js index 5332f826..8789f76e 100644 --- a/commands/search/urban-dictionary.js +++ b/commands/search/urban-dictionary.js @@ -34,7 +34,7 @@ module.exports = class UrbanDictionaryCommand extends Command { .setAuthor('Urban Dictionary', 'https://i.imgur.com/Fo0nRTe.png', 'https://www.urbandictionary.com/') .setURL(data.permalink) .setTitle(data.word) - .setDescription(shorten(data.definition)) + .setDescription(shorten(data.definition.replace(/\[\]/g, ''))) .setFooter(`👍 ${formatNumber(data.thumbs_up)} 👎 ${formatNumber(data.thumbs_down)}`) .setTimestamp(new Date(data.written_on)) .addField('❯ Example', data.example ? shorten(data.example, 1000) : 'None'); diff --git a/package.json b/package.json index 987d6ad8..30934f27 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "95.1.3", + "version": "95.1.4", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {