Skip to content

Commit

Permalink
fix: lyrics file line separator regex (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Nov 3, 2024
1 parent 7be0d44 commit 373fc48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ data class TimedContent(val pairs: List<Pair<Long, String>>) {
val isSynced: Boolean get() = pairs.firstOrNull()?.first != pairs.lastOrNull()?.first

companion object {
val lrcLineSeparatorRegex = Regex("""\\n|\\r|\\r\\n""")
val lrcLineSeparatorRegex = Regex("""\n|\r|\r\n""")
val lrcLineFilterRegex = Regex("""^\[\s*(\d+):(\d+)\.(\d+)?\s*](.*)""")

fun fromLyrics(content: String): TimedContent {
Expand Down

0 comments on commit 373fc48

Please sign in to comment.