Don't strip comments from metadata during parsin

This commit is contained in:
Dean Herbert 2021-03-25 13:35:54 +09:00
parent e22650293d
commit 4f8edcd336
1 changed files with 7 additions and 1 deletions

View File

@ -36,7 +36,13 @@ protected override void ParseStreamInto(LineBufferedReader stream, T output)
if (ShouldSkipLine(line))
continue;
line = StripComments(line).TrimEnd();
if (section != Section.Metadata)
{
// comments should not be stripped from metadata lines, as the song metadata may contain "//" as valid data.
line = StripComments(line);
}
line = line.TrimEnd();
if (line.StartsWith('[') && line.EndsWith(']'))
{