Skip to content

Commit

Permalink
Merge pull request #2516 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…2515-to-release_1.2.46

[release_1.2.46] OCM-11482 | fix: loosen registry regex check
  • Loading branch information
gdbranco authored Sep 27, 2024
2 parents af04fb1 + 51edf0a commit 6e8c798
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 6e8c798

Please sign in to comment.