From c8b9c0dae88a858b1839160ea02abe7eb388f35b Mon Sep 17 00:00:00 2001 From: memorydream <34763046+memorydream@users.noreply.github.com> Date: Fri, 28 Jan 2022 15:17:34 +0800 Subject: [PATCH] fix(utils/lyrics): format --- src/utils/lyrics.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/lyrics.js b/src/utils/lyrics.js index 517e9f4..2156e98 100644 --- a/src/utils/lyrics.js +++ b/src/utils/lyrics.js @@ -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) };