Skip to content

Add util method for parsing UUIDs #111

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

Merged
merged 1 commit into from
May 21, 2025

Conversation

tal5
Copy link
Member

@tal5 tal5 commented May 20, 2025

Adds CoreUtilities#tryParseUUID, just a small util method to avoid having to try/catch in scenarios where all you really need is just a UUID or null.

Note

UUID#fromString handles checking the string obviously, but could also do some separate initial checks like making sure all chars in the string are valid and such, lmk if you think that's needed.

Note

Not sure if the name is great? could also maybe do uuidFromString.

@mcmonkey4eva mcmonkey4eva merged commit 1d3ce37 into DenizenScript:master May 21, 2025
1 check passed
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.

2 participants