osumapper icon indicating copy to clipboard operation
osumapper copied to clipboard

Fix regex for parsing difficulty data

Open tsweet64 opened this issue 3 years ago • 1 comments

I experienced an issue where parsing the .osu files failed due to the match() returning null. This seems to have been because my files had spaces separating the keys and values, like HPDrainRate: 3 instead of HPDrainRate:3 and because some values were pure integers with no decimals (I use osu!lazer, so perhaps these are differences from the stable version). This commit updates the regex to accommodate files with or without spaces, and values with or without decimal points.

tsweet64 avatar Jun 24 '21 05:06 tsweet64

Yup. Preety simple fix. Please add this.

ArmandoRl1 avatar Jul 20 '21 19:07 ArmandoRl1