diff --git a/commands/interaction/slash/search/lyrics.js b/commands/interaction/slash/search/lyrics.js index 82d8d77..4d904aa 100644 --- a/commands/interaction/slash/search/lyrics.js +++ b/commands/interaction/slash/search/lyrics.js @@ -105,7 +105,7 @@ module.exports = { for(const f of search.body.lyrics.split('\n\n')){ fields.push({ name: '​', - value: f.substr(0,1024).replace(/\[(.*?)\]/g,"-# [$1]"), + value: f.replace(/\[(.*?)\]/g,"-# [$1]").substr(0,1024), inline: false }) } diff --git a/commands/message/search/lyrics.js b/commands/message/search/lyrics.js index f2255bb..f4e6493 100644 --- a/commands/message/search/lyrics.js +++ b/commands/message/search/lyrics.js @@ -91,7 +91,7 @@ module.exports = { for(const f of search.body.lyrics.split('\n\n')){ fields.push({ name: '​', - value: f.substr(0,1024).replace(/\[(.*?)\]/g,"-# [$1]"), + value: f.replace(/\[(.*?)\]/g,"-# [$1]").substr(0,1024), inline: false }) }