mirror of
https://github.com/ppy/osu
synced 2025-02-25 23:21:26 +00:00
Don't strip comments from metadata during parsin
This commit is contained in:
parent
e22650293d
commit
4f8edcd336
@ -36,7 +36,13 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
if (ShouldSkipLine(line))
|
if (ShouldSkipLine(line))
|
||||||
continue;
|
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(']'))
|
if (line.StartsWith('[') && line.EndsWith(']'))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user