You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Valid prerelease versions rejected as "version looks like a range" #1855
Publishing a server with a version like 19.0.0-experimental.1, 2.1.0-hotfix.1 or 1.4.0-linux-x64 fails with version-looks-like-range.
Cause: looksLikeVersionRange (internal/validators/validators.go) treats any dotted version containing x, X or * as a wildcard, including inside the prerelease tag after -. The "x" in "experimental", "hotfix" and "linux-x64" triggers it.
Repro: set "version": "2.1.0-hotfix.1" in server.json and validate/publish.
Expected: accepted (it's a specific version).
Actual: error version-looks-like-range.
Still rejected as intended: 1.x, 1.*, 1.2.x.
Activity