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:
zarzet
2026-09-06 14:05:09 +07:00
parent a89f786960
commit 1d96521c0f
8 changed files with 111 additions and 1 deletions
+1 -1
View File
@@ -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();