Bläddra i källkod

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

Ken Cochrane 11 år sedan
förälder
incheckning
0f829bf5cf
1 ändrade filer med 1 tillägg och 1 borttagningar
  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-_.]+)$`)
 	validRepo := regexp.MustCompile(`^([a-z0-9-_.]+)$`)
 	if !validRepo.MatchString(name) {
 	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
 	return nil
 }
 }