-
Notifications
You must be signed in to change notification settings - Fork 161
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 intdot
as version scheme
#166
Comments
@pombredanne What would be the process to get this included? |
This scheme would essentially be like semver but would allow more labels, e.g., 1.2.3.4.5, correct? |
More or less: It just splits at the |
So, we allow any kind of prerelease/build part, like |
I'm currently not sure, what the best way would be. The algorithm in the description does a straight cast to int... Would that be appropriate? Or would So, please provide a suggestion as you go. |
The easiest is to write a regex that separates the two groups, see my current draft. |
Things to be careful of:
The safest option is to specify that the digits must be ASCII digits and include either a maximum supported size or some test cases with excessively large numbers to catch implementations that have unexpected limits. |
@matt-phylum Thank you for your comments and insights. I would suggest:
|
See the univers PR here: aboutcode-org/univers#148 |
I suggest to add a version scheme
intdot
that is defined as follows:To compare 2 versions a and b, do:
This will cover 80% of the currently used version schemes that do not follow one of the well-known version-schemes.
Thoughts?
Flagging @pombredanne for comments.
The text was updated successfully, but these errors were encountered: