mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-03 06:31:08 +02:00
#129 Fix plugin version validation
This commit is contained in:
@@ -23,7 +23,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"
|
||||
|
||||
Reference in New Issue
Block a user