mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-20 00:32:15 +02:00
fix(lyrics): align usability checks with shared fixtures
Trim after removing inline timestamps before matching speaker prefixes in Dart. Run one 21-case usability corpus through Dart, Go, and Kotlin tests. Document the shared fixture and trigger Dart and Go CI when its resources change.
This commit is contained in:
@@ -48,7 +48,7 @@ String cleanLyricsForDisplay(String lyrics) {
|
||||
while (_lrcDisplayTimestampPattern.hasMatch(cleaned)) {
|
||||
cleaned = cleaned.replaceFirst(_lrcDisplayTimestampPattern, '').trim();
|
||||
}
|
||||
cleaned = cleaned.replaceAll(_lrcDisplayInlineTimestampPattern, '');
|
||||
cleaned = cleaned.replaceAll(_lrcDisplayInlineTimestampPattern, '').trim();
|
||||
cleaned = cleaned.replaceFirst(_lrcDisplaySpeakerPrefixPattern, '');
|
||||
cleaned = cleaned.replaceAll(RegExp(r'\s+'), ' ').trim();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user