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

This commit is contained in:
Ken Cochrane 2013-09-25 11:33:09 -04:00
parent 1363de0934
commit 0f829bf5cf

View file

@ -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
}