VersionParsing package implements flexible parsing of
version-number strings into Julia's built-in
VersionNumber type, via
handle version-number strings in a much wider range of formats than
are encompassed by the semver standard. This
is useful in order to support
VersionNumber comparisons applied
to "foreign" version numbers from external packages.
- Non-numeric prefixes are stripped along with any invalid version characters. Commas are treated as decimal points.
- Text following whitespace after the version number is ignored.
major.minor.patch.x.y.zis supported, with
x.y.zprepended to the semver build identifier, i.e. it is parsed like
+x+ybuild identifiers are concatenated as if they were
- A leading
0is prepended if needed, e.g.
.xis treated as
- When all else fails, everything except the first
major.minor.patchdigits found are ignored.