Skip to content

Commit

Permalink
escape dot in regular expression
Browse files Browse the repository at this point in the history
Signed-off-by: Li Wang <li.wang3@fmr.com>
  • Loading branch information
wangli1030 committed Apr 10, 2024
1 parent b094ada commit e80fef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/versionchecker/fromservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
)

var imageVersion = regexp.MustCompile(`^quay.io/jetstack/cert-manager-webhook:(v(?:\d+)\.(?:\d+)\.(?:\d+)(?:.*))$`)
var imageVersion = regexp.MustCompile(`^quay\.io/jetstack/cert-manager-webhook:(v(?:\d+)\.(?:\d+)\.(?:\d+)(?:.*))$`)

func (o *VersionChecker) extractVersionFromService(
ctx context.Context,
Expand Down

0 comments on commit e80fef1

Please sign in to comment.