mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-15 17:43:09 -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')){
|
for(const f of search.body.lyrics.split('\n\n')){
|
||||||
fields.push({
|
fields.push({
|
||||||
name: '',
|
name: '',
|
||||||
value: f.substr(0,1024).replace(/\[(.*?)\]/g,"-# [$1]"),
|
value: f.replace(/\[(.*?)\]/g,"-# [$1]").substr(0,1024),
|
||||||
inline: false
|
inline: false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ module.exports = {
|
||||||
for(const f of search.body.lyrics.split('\n\n')){
|
for(const f of search.body.lyrics.split('\n\n')){
|
||||||
fields.push({
|
fields.push({
|
||||||
name: '',
|
name: '',
|
||||||
value: f.substr(0,1024).replace(/\[(.*?)\]/g,"-# [$1]"),
|
value: f.replace(/\[(.*?)\]/g,"-# [$1]").substr(0,1024),
|
||||||
inline: false
|
inline: false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue