diff --git a/Assets/Script/Serialization/Parser/MidiParser.Vocals.cs b/Assets/Script/Serialization/Parser/MidiParser.Vocals.cs index 8611f29d2..6206c1df8 100644 --- a/Assets/Script/Serialization/Parser/MidiParser.Vocals.cs +++ b/Assets/Script/Serialization/Parser/MidiParser.Vocals.cs @@ -52,10 +52,10 @@ private List ParseGenericLyrics(TrackChunk trackChunk, TempoMa break; } + // Get lyric text string l = lyricEvent.Text.Trim(); - - // Remove state changes - if (l.StartsWith("[") && l.EndsWith("]")) { + if (textEventRegex.IsMatch(l)) { + // This is a normal text event, not a lyric continue; } @@ -142,10 +142,10 @@ private List ParseRealLyrics(List eventIR, TrackChunk trackC break; } + // Get lyric text string l = lyricEvent.Text.Trim(); - - // Remove state changes - if (l.StartsWith("[") && l.EndsWith("]")) { + if (textEventRegex.IsMatch(l)) { + // This is a normal text event, not a lyric continue; }