修复改变播放速率时会导致歌词报错的问题

This commit is contained in:
lyswhut
2023-05-31 09:07:35 +08:00
parent cbbcf914ad
commit 0adb4f5ae5
2 changed files with 2 additions and 1 deletions
@@ -133,8 +133,8 @@ module.exports = class FontPlayer {
// let lineText = ''
let lrcShadowContent
for (const font of fonts) {
if (!timeRxp.test(font)) return this._handleLineParse()
text = font.replace(timeRxp, '')
if (RegExp.$2 == '') return this._handleLineParse()
const time = parseInt(RegExp.$2)
const dom = document.createElement('span')