Skip to content

Commit

Permalink
fix: Changed regex to include capital letters.
Browse files Browse the repository at this point in the history
Signed-off-by: rahulk789 <[email protected]>
  • Loading branch information
rahulk789 committed Jul 28, 2023
1 parent 3006aa5 commit a7e9aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/autodetect.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var (
},
}

clusterNameValidation = regexp.MustCompile(`^[a-z0-9]([-a-z0-9]*[a-z0-9])$`)
clusterNameValidation = regexp.MustCompile(`^[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])$`)
)

func (p Parameters) checkDisabled(name string) bool {
Expand Down

0 comments on commit a7e9aba

Please sign in to comment.