Neargye / semver

Semantic Versioning for modern C++
MIT License
296 stars 32 forks source link

Support prerelease with no number #37

Closed TylerJang27 closed 1 year ago

TylerJang27 commented 1 year ago

According to semver, prerelease tags can have lots more content than just [alpha/beta/rc].#. While more work is required to support this, this PR adds the ability to specify a numberless prerelease range. Prerelease versions will also respect this (previously, 1.2.3-alpha implied 1.2.3-alpha.0).

Comparatively, 1.2.3-alpha comes before 1.2.3-alpha.0 based on most other implementations.

Neargye commented 1 year ago

Maybe use std::optional?

Neargye commented 1 year ago

Thanks for PR!