ddddxxx / LyricsX

🎶 Ultimate lyrics app for macOS.
Mozilla Public License 2.0
4.67k stars 387 forks source link

Cannot ignore blank lines 无法忽略空白行 #468

Closed MikeWang000000 closed 3 years ago

MikeWang000000 commented 3 years ago

某些歌词来源(如网易云)存在较多空行,即一行歌词结束后,它的下一行是空行。这样桌面歌词出现/消失过于频繁。 我想利用过滤功能忽略空白行(例如正则表达式/^\s*)但是对于无任何字符的空行不起作用。

Some lyric sources (e.g. 163) contains too many empty lines (after a line of lyrics ends, its next line is empty). This leads to Desktop lyrics appearing/disappearing too often. I would like to use the filter to ignore blank lines (e.g. using regular expression /^\s*) but it doesn't work for blank lines which have no characters.

ddddxxx commented 3 years ago

已确认正则的处理有误。即使以/开头也没有按照正则表达式来匹配。正常来说/^$应该能过滤掉空行