Skip to content

Commit

Permalink
Update repository regexp
Browse files Browse the repository at this point in the history
Signed-off-by: Rastislav Szabo <[email protected]>
  • Loading branch information
Rastislav Szabo committed Jan 10, 2023
1 parent 8386b02 commit 5aaf31f
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 5aaf31f

Please sign in to comment.