taplo icon indicating copy to clipboard operation
taplo copied to clipboard

RegEx says a valid SemVer version is invalid

Open jrmidkiff opened this issue 3 years ago • 2 comments

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

jrmidkiff avatar Nov 30 '22 22:11 jrmidkiff

Same goes for a version string like 0.1.0-dev.0 with Even Better TOML v0.19.2

lesinigo avatar Aug 28 '23 13:08 lesinigo

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.

ia0 avatar Aug 28 '23 18:08 ia0