unascribed / FlexVer

A SemVer-compatible intuitive comparator for free-form versioning strings as seen in the wild, designed to sort versions like people do.
Creative Commons Zero v1.0 Universal
65 stars 10 forks source link

Prerelease behavior between ports is inconsistent #12

Closed unascribed closed 1 year ago

unascribed commented 1 year ago

Ref #10 — there is an ambiguity in the specification that resulted in the Go implementation differing from all the others.

Go separately splits on hyphens, where all the other implementations look for existing textual components that begin with -.

The spec should be updated to require that - and + be separate special split characters, and all non-Go implementations updated to match.

Waiting for #10 before I make this change, as it touches most implementations. #10 has been merged.

Port progress: