diff --git a/tools/kystrap/cmd/create.go b/tools/kystrap/cmd/create.go index c4291b8..250c42c 100644 --- a/tools/kystrap/cmd/create.go +++ b/tools/kystrap/cmd/create.go @@ -14,7 +14,7 @@ import ( "github.com/spf13/cobra" ) -var regexpAlphaNumericAndDash = regexp.MustCompile(`^[a-zA-Z0-9-]+$`) +var regexpAlphaNumericAndDash = regexp.MustCompile(`^[a-z0-9-]+$`) var ( flagLanguage = commoncmd.OptionFlag[types.Language]{ @@ -46,7 +46,7 @@ var ( return errors.New("name must be at least 3 characters long") } if !regexpAlphaNumericAndDash.MatchString(input) { - return errors.New("name must only contain alphanumeric characters and dashes") + return errors.New("name must only contain lowercase alphanumeric characters and dashes") } return nil },