diff --git a/server/utils/utils.go b/server/utils/utils.go index f3b01eb30cbf16da473366aeaf0be22e77b016e0..ca54ce2717031906766a3209b17942e791e7e958 100644 --- a/server/utils/utils.go +++ b/server/utils/utils.go @@ -40,8 +40,11 @@ func ValidateRepo(repo string) error { return fmt.Errorf("repo cannot be empty") } + fmt.Println("ACTUAL REPO NAME IS", repo) + for _, r := range repo { if !unicode.IsLetter(r) && !unicode.IsDigit(r) && r != '-' && r != '_' && r != '.' && r != '/' { + fmt.Println("INVALID CHAR", r, string(r)) return fmt.Errorf("repo can only contain letters, numbers, hyphens, underscores, periods, and slashes") } }