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

Add SemanticVersion.valid? and SemanticVersion.parse? #15020

Open
devnote-dev opened this issue Sep 19, 2024 · 0 comments · May be fixed by #15051
Open

Add SemanticVersion.valid? and SemanticVersion.parse? #15020

devnote-dev opened this issue Sep 19, 2024 · 0 comments · May be fixed by #15051

Comments

@devnote-dev
Copy link
Contributor

Currently the only way to "test" a semantic version string is to rescue from SemanticVersion.parse. Such helper methods would be really convenient given that there's no regex or alternative method publicly exposed to do so. It seems like these once existed in an old PR reworking the API and just didn't make it to the existing one, and looking at the implementation it's relatively straightforward to add.

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

Successfully merging a pull request may close this issue.

1 participant