mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 15:57:43 +02:00
embedURL defaulting to url is causing severe length issues
This commit is contained in:
+1
-1
@@ -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}"` : ''})`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user