forked from TrueCloudLab/distribution
fix the error message so it is the same as the regex issue #1999
This commit is contained in:
parent
38c0b8a3f1
commit
cbb906e41f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue