Pull request for issue #16.
Add support for plus sign before build number. Fixes #16.
Going along with this would be support for the pre-release version.
I'm ok with this change, since it's objectively how people are actually using version number strings in the real world today, as pointed out in #16.
However, this is not actually supporting the semver.org RC spec version, as far as I can tell. With this change, 1.2.3+build.2 treats the +build.2 as a tag, not a build number. (Note that 1.2.3-2 > 1.2.3 but 1.2.3+build.2 < 1.2.3.)
1.2.3-2 > 1.2.3
1.2.3+build.2 < 1.2.3
Also: Please add LOTS AND LOTS of tests. Thanks :)
Also, with this change, "-" is no longer the smallest possible non-empty tag value, since "-" > "+". So, all the places where we're appending "-" to versions to accept any tag values (eg, so that ~1.2.3 matches 1.2.3-alpha) will have to use "+" instead, so that ~1.2.3 matches 1.2.3+alpha as well.
"-" > "+"
urgh. 1.2.3+build.2 < 1.2.3 would not be good. So the 467fb6f commit above is insufficient.
What's the status of this?
This patch has problems. I'm ok with the intent of the change, but this is not a correct implementation. Closing.