Explorar o código

fix the error message so it is the same as the regex issue #1999

Ken Cochrane %!s(int64=12) %!d(string=hai) anos
pai
achega
0f829bf5cf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      registry/registry.go

+ 1 - 1
registry/registry.go

@@ -72,7 +72,7 @@ func validateRepositoryName(repositoryName string) error {
 	}
 	validRepo := regexp.MustCompile(`^([a-z0-9-_.]+)$`)
 	if !validRepo.MatchString(name) {
-		return fmt.Errorf("Invalid repository name (%s), only [a-zA-Z0-9-_.] are allowed", name)
+		return fmt.Errorf("Invalid repository name (%s), only [a-z0-9-_.] are allowed", name)
 	}
 	return nil
 }