Skip to content

Commit 9f61526

Browse files
authored
Merge pull request #994 from MoYingJi/pr/fix
fix(lyricParser): 修复 WordByWord 格式 LRC 解析错误
2 parents 1122157 + a1dccdd commit 9f61526

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/lyric/lyricParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export const detectLrcFormat = (content: string): LrcFormat => {
9696
export const parseWordByWordLrc = (content: string): LyricLine[] => {
9797
const result: LyricLine[] = [];
9898
let prevLine: LyricLine | null = null;
99-
const WORD_BY_WORD_PATTERN = /\[(\d{2}):(\d{2})\.(\d{1,})\]([^[\\]]*)/g;
99+
const WORD_BY_WORD_PATTERN = /\[(\d{2}):(\d{2})\.(\d{1,})\]([^[\]]*)/g;
100100

101101
for (const rawLine of content.split(/\r?\n/)) {
102102
const line = rawLine.trim();

0 commit comments

Comments
 (0)