mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 07:03:08 -04:00
fix issue with lyric length
This commit is contained in:
parent
35c95a748e
commit
ed67725647
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue