Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regex for parsing difficulty data #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tsweet64
Copy link

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.

@ArmandoRl1
Copy link

Yup. Preety simple fix. Please add this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants