Skip to content

Commit

Permalink
OCM-11482 | fix: loosen registry regex check
Browse files Browse the repository at this point in the history
Signed-off-by: Maggie Chen <magchen@redhat.com>
  • Loading branch information
chenz4027 authored and openshift-cherrypick-robot committed Sep 27, 2024
1 parent af04fb1 commit 51edf0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ocm/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func ValidateRegistryAdditionalCa(input map[string]string) error {
}

func ValidateAllowedRegistriesForImport(input interface{}) error {
var idRE = regexp.MustCompile(`^([a-z0-9-]+\.[a-z]{2,})(:\d{1,5})?:(true|false)$`)
var idRE = regexp.MustCompile(`^(.+):(true|false)$`)
var registries []string
inputType := reflect.TypeOf(input).Kind()
switch inputType {
Expand Down

0 comments on commit 51edf0a

Please sign in to comment.