Closed Soiiyu closed 10 months ago
Oh, that's a good catch. I never really thought this could be found in a submitted beatmap.
Hopefully it's one of those rare cases, like Skystar's Asymmetry map having that "\uFEFF" symbol. The editor seems to do it's best trimming all the extra whitespace, so I can't imagine newer maps having it.
Regardless, this is a great parser, thank you for your work!
If there is an empty line above the
osu file format v
line, the parser throwsError: Failed to decode a beatmap: Not a valid beatmap!
.This only really appeared in 1 map out of the ~2,500 I've parsed (https://osu.ppy.sh/b/1485848), so it's not a very big problem as far as I know.
A quick fix I tried adding was:
inside the
decodeFromLines()
function atnode.cjs:2700
andnode.mjs:2696
. or at BeatmapDecoder.ts:121.