mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 13:22:55 +08:00
Merge pull request #12177 from peppy/fix-comment-parsing-regression
Don't strip comments from metadata during parsing
This commit is contained in:
commit
41cf261286
@ -36,7 +36,13 @@ namespace osu.Game.Beatmaps.Formats
|
||||
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(']'))
|
||||
{
|
||||
|
@ -17,8 +17,6 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
if (section != Section.Colours)
|
||||
{
|
||||
line = StripComments(line);
|
||||
|
||||
var pair = SplitKeyVal(line);
|
||||
|
||||
switch (section)
|
||||
|
Loading…
Reference in New Issue
Block a user