Updating plugin.go to allow versions

This change is it allow all possible versions in all plugins within update.jenkins.io, this is linked to issue:https://github.com/jenkinsci/kubernetes-operator/issues/144
This commit is contained in:
Jeronimo
2019-10-18 10:41:05 +01:00
committed by GitHub
parent 159e0cfee7
commit 7ad8a16cd6
+1 -1
View File
@@ -21,7 +21,7 @@ func (p Plugin) String() string {
var (
namePattern = regexp.MustCompile(`(?i)^[0-9a-z-_]+$`)
versionPattern = regexp.MustCompile(`^[0-9\\.-]+$`)
versionPattern = regexp.MustCompile(`^[0-9\\.-]+(\..+)?$`)
)
// New creates plugin from string, for example "name-of-plugin:0.0.1"