Skip to content

Commit

Permalink
Enable hyphen in operator names
Browse files Browse the repository at this point in the history
  • Loading branch information
cha0tic87 committed Oct 12, 2021
1 parent 1f5a950 commit 0e1d21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/console/console-admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const (
)

var (
namePattern = regexp.MustCompile("^[a-zA-Z0-9_]*$") // Only allow alphanumeric chars
namePattern = regexp.MustCompile("^[a-zA-Z0-9_-]*$") // Only allow alphanumeric chars
)

// ClientConfig - Client JSON config
Expand Down

0 comments on commit 0e1d21b

Please sign in to comment.