From 4c5d55e1edca04361c2059df314c9f2ecab187eb Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 23 Apr 2020 16:36:05 -0400 Subject: [PATCH] embedURL defaulting to url is causing severe length issues --- README.md | 2 +- package.json | 2 +- util/Util.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 14000eb4..cca42d78 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ don't grant that permission. ## Fun Information - 400+ Commands -- 19,000+ lines of JavaScript +- 20,000+ lines of JavaScript - 61,000+ lines of JSON data - 3 years of development - 3,000+ commits diff --git a/package.json b/package.json index f8ac07cc..48c8765b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "113.15.0", + "version": "113.15.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { diff --git a/util/Util.js b/util/Util.js index 33115811..59a9d2cc 100644 --- a/util/Util.js +++ b/util/Util.js @@ -146,7 +146,7 @@ module.exports = class Util { return today; } - static embedURL(title, url, display = url) { + static embedURL(title, url, display) { return `[${title}](${url.replace(/\)/g, '%27')}${display ? ` "${display}"` : ''})`; }