Skip to content

Commit

Permalink
Merge pull request #7 from rastislavs/repo-regexp
Browse files Browse the repository at this point in the history
Update repository regexp to allow slashes in repository name
  • Loading branch information
kubermatic-bot authored Jan 12, 2023
2 parents 8386b02 + 5aaf31f commit c664767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func validRepositoryRole(role quay.RepositoryRole) bool {
var (
userRegexp = regexp.MustCompile(`^[a-z0-9][.a-z0-9_-]*$`)
teamRegexp = regexp.MustCompile(`^[a-z][a-z0-9]+$`)
repoRegexp = regexp.MustCompile(`^[a-z0-9][.a-z0-9_-]*$`)
repoRegexp = regexp.MustCompile(`^[a-z0-9][.a-z0-9_-]*(/[a-z0-9][.a-z0-9_-]*)*$`)
robotRegexp = regexp.MustCompile(`^[a-z][a-z0-9_]{1,254}$`)
orgRegexp = regexp.MustCompile(`^[a-z0-9][.a-z0-9_-]{1,254}$`)
)
Expand Down

0 comments on commit c664767

Please sign in to comment.