From a7e9abaa6395095651081d5fa1b2259fd2fd4d80 Mon Sep 17 00:00:00 2001 From: rahulk789 Date: Fri, 28 Jul 2023 10:55:49 +0530 Subject: [PATCH] fix: Changed regex to include capital letters. Signed-off-by: rahulk789 --- install/autodetect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/autodetect.go b/install/autodetect.go index aa474e631c..e0b7e33409 100644 --- a/install/autodetect.go +++ b/install/autodetect.go @@ -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 {