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:
parent
159e0cfee7
commit
7ad8a16cd6
|
|
@ -21,7 +21,7 @@ func (p Plugin) String() string {
|
||||||
|
|
||||||
var (
|
var (
|
||||||
namePattern = regexp.MustCompile(`(?i)^[0-9a-z-_]+$`)
|
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"
|
// New creates plugin from string, for example "name-of-plugin:0.0.1"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue