mirror of
https://github.com/ppy/osu
synced 2024-12-15 19:36:34 +00:00
Trim end of line
Fix ArgumentOutOfRangeException when parsing http://osu.ppy.sh/osu/1004136
This commit is contained in:
parent
c22e1520a0
commit
6c5c734ff1
@ -611,7 +611,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
CommandTimelineGroup timelineGroup = null;
|
CommandTimelineGroup timelineGroup = null;
|
||||||
|
|
||||||
string line;
|
string line;
|
||||||
while ((line = stream.ReadLine()) != null)
|
while ((line = stream.ReadLine()?.TrimEnd()) != null)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(line))
|
if (string.IsNullOrEmpty(line))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user