embedURL defaulting to url is causing severe length issues

This commit is contained in:
Dragon Fire
2020-04-23 16:36:05 -04:00
parent 5b8acfad8b
commit 4c5d55e1ed
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ don't grant that permission.
## Fun Information ## Fun Information
- 400+ Commands - 400+ Commands
- 19,000+ lines of JavaScript - 20,000+ lines of JavaScript
- 61,000+ lines of JSON data - 61,000+ lines of JSON data
- 3 years of development - 3 years of development
- 3,000+ commits - 3,000+ commits
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "xiao", "name": "xiao",
"version": "113.15.0", "version": "113.15.1",
"description": "Your personal server companion.", "description": "Your personal server companion.",
"main": "Xiao.js", "main": "Xiao.js",
"scripts": { "scripts": {
+1 -1
View File
@@ -146,7 +146,7 @@ module.exports = class Util {
return today; return today;
} }
static embedURL(title, url, display = url) { static embedURL(title, url, display) {
return `[${title}](${url.replace(/\)/g, '%27')}${display ? ` "${display}"` : ''})`; return `[${title}](${url.replace(/\)/g, '%27')}${display ? ` "${display}"` : ''})`;
} }