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 <[email protected]>
  • Loading branch information
chenz4027 committed Sep 27, 2024
1 parent 1fb239e commit 6f39946
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 6f39946

Please sign in to comment.