mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2026-04-05 02:16:54 +08:00
fix(utils/lyrics): format
This commit is contained in:
@@ -62,8 +62,7 @@ function parseLyric(lrc) {
|
||||
for (const timestamp of lyricTimestamps.matchAll(extractTimestampRegex)) {
|
||||
const { min, sec, ms } = timestamp.groups;
|
||||
const rawTime = timestamp[0];
|
||||
const time =
|
||||
Number(min) * 60 + Number(sec) + Number(ms ?? 0) * 0.001;
|
||||
const time = Number(min) * 60 + Number(sec) + Number(ms ?? 0) * 0.001;
|
||||
|
||||
/** @type {ParsedLyric} */
|
||||
const parsedLyric = { rawTime, time, content: trimContent(content) };
|
||||
|
||||
Reference in New Issue
Block a user