music: fix incorrect sort punct removal

Fix incorrect punctuation removal resulting in weird sorting behavior.
This commit is contained in:
Alexander Capehart
2023-04-16 18:01:32 -06:00
parent e6b00b1025
commit d0f8291085
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# Changelog
## dev
## 3.0.5
#### What's Fixed
- Fixed inconsistent corner radius on widget
@@ -407,7 +407,7 @@ class SortName(name: String, musicSettings: MusicSettings) : Comparable<SortName
private companion object {
val COLLATOR: Collator = Collator.getInstance().apply { strength = Collator.PRIMARY }
val LEADING_PUNCTUATION_REGEX = Regex("[^\\p{Punct}+]")
val LEADING_PUNCTUATION_REGEX = Regex("[\\p{Punct}+]")
val CONSECUTIVE_DIGITS_REGEX = Regex("\\d+")
}
}