Add Show Lyrics option to settings

This commit is contained in:
LoveEevee
2020-03-31 16:44:54 +03:00
parent 51bd6cec63
commit de284d204d
5 changed files with 17 additions and 6 deletions

View File

@@ -160,6 +160,7 @@
var circleID = 0
var regexAZ = /[A-Z]/
var regexSpace = /\s/
var regexLinebreak = /\\n/g
var isAllDon = (note_chain, start_pos) => {
for (var i = start_pos; i < note_chain.length; ++i) {
var note = note_chain[i];
@@ -422,7 +423,7 @@
}
this.lyrics.push({
start: ms,
text: value.trim()
text: value.trim().replace(regexLinebreak, "\n")
})
break
}