From 4b57dda34254bedd6743206260c418740b47f790 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Wed, 25 Sep 2024 19:50:50 +0800 Subject: [PATCH] chore: lrc now also support mm:ss.zzz instead of .zz only --- lyricsmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lyricsmanager.cpp b/lyricsmanager.cpp index 4b6c83d..89defcd 100644 --- a/lyricsmanager.cpp +++ b/lyricsmanager.cpp @@ -66,7 +66,7 @@ bool LyricsManager::loadLyrics(QString filepath) // parse lyrics timestamp QRegularExpression tagRegex(R"regex(\[(ti|ar|al|au|length|by|offset|tool|re|ve|#):\s?([^\]]*)\]$)regex"); - QRegularExpression lrcRegex(R"regex(\[(\d{2,3}:\d{2}\.\d{2})\](.*))regex"); + QRegularExpression lrcRegex(R"regex(\[(\d{2,3}:\d{2}\.\d{2,3})\](.*))regex"); bool tagSectionPassed = false; for (QString line : std::as_const(lines)) {