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

fix(Rust): store original Numerical String for Lexical comparison #2

Closed Infinidoge closed 2 years ago

Infinidoge commented 2 years ago

Previously, when comparing between a number and a string, the parsed number was converted back into a string, which would lose all leading zeros. This instead stores the original string and uses that for doing Lexical comparisons.