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

Validate string before calling java.util.fromString #135

Merged
merged 1 commit into from
Mar 9, 2020

Conversation

Philippus
Copy link
Contributor

@Philippus Philippus commented Feb 27, 2020

Applying this PR will validate the string to check if it follows RFC 4122 using a regex before calling java.util.fromString. Fixes #134.

Comments welcome as I'm not a java programmer. :)

@Philippus Philippus changed the title Validate string before passing it to fromString Validate string before calling java.util.fromString Feb 27, 2020
@alejandrohdezma
Copy link
Collaborator

Thank you very much for your contribution! 😸

@alejandrohdezma alejandrohdezma added the bug Something isn't working label Feb 27, 2020
Copy link
Contributor

@gutiory gutiory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@alejandrohdezma
Copy link
Collaborator

Hey @Philippus, so sorry for the late response, I'll merge this PR along with #136 to include some improvements.

Thank you very much :)

@alejandrohdezma alejandrohdezma merged commit 6046f5f into 47degrees:master Mar 9, 2020
@Philippus Philippus deleted the validate-from-string branch June 13, 2020 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fromString method accepts invalid strings
3 participants