-
Notifications
You must be signed in to change notification settings - Fork 503
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 method to test if tag is a pre-release tag #133
Comments
And maybe have a method to extract the type of prerelease: > semver.prerelease("1.0.0-alpha.1") // or semver.pre ?
"alpha"
> semver.prerelease("1.0.0-beta.45")
"beta" |
Shouldn't it return the full Another option would be to return the full parsed
|
Something like this would be perfect 👍 You're right, it should return the full parsed I was trying to find the most conventional way to filter versions by "pre-release's category" ( |
I have the same demand. Any update on this? |
It'd be great to have a method like
semver.isPrerelease(v)
:The text was updated successfully, but these errors were encountered: