taplo
taplo copied to clipboard
RegEx says a valid SemVer version is invalid
Even Better TOML v.0.19.0
Example TOML file
[project]
name = "whatever"
version = "2.2.0+private"
"2.2.0+private" is a valid SemVer according to the SemVer site and a checker, but Even Better TOML does not agree.
My suggested fix is to use the regex given at https://semver.org - see the bottom of the webpage
Same goes for a version string like 0.1.0-dev.0 with Even Better TOML v0.19.2
This is a bug of SchemaStore specific to PyProject, please open a bug there. Or maybe it's expected behavior for PyProject.
Taplo uses the semver crate which supports the 2 example provided in this issue.