Skip to content

Commit

Permalink
removing grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
driev committed Sep 5, 2024
1 parent 0dd681e commit 9b24377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/pkg/store/utils/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

func CheckName(name string) bool {
ok, err := regexp.MatchString("^[a-z0-9]([-a-z0-9]*[a-z0-9])?([a-z0-9]([-a-z0-9]*[a-z0-9])?)$", name)
if (!ok || err != nil) || strings.Contains(name, ".") {
if !ok || err != nil || strings.Contains(name, ".") {
return false
}
return true
Expand Down

0 comments on commit 9b24377

Please sign in to comment.