fix(utils/lyrics): format

This commit is contained in:
memorydream 2022-01-28 15:17:34 +08:00 committed by GitHub
parent 769ba47a1d
commit c8b9c0dae8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) };