lib/build: Allow semver build in version regex (fixes #9267) (#9316)

This commit is contained in:
Peter Badida
2024-01-02 20:43:22 +01:00
committed by GitHub
parent 2abfefc18c
commit fc1c7a3c49
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -27,6 +27,11 @@ func TestAllowedVersions(t *testing.T) {
{"v0.13.0-some-weird-but-allowed-tag", true},
{"v0.13.0-allowed.to.do.this", true},
{"v0.13.0+not.allowed.to.do.this", false},
{"v1.27.0+xyz", true},
{"v1.27.0-abc.1+xyz", true},
{"v1.0.0+45", true},
{"v1.0.0-noupgrade", true},
{"v1.0.0+noupgrade", true},
}
for i, c := range testcases {