fix(certmanager): improve regex to ignore "`" character
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
Tom Neuber 2025-01-22 09:14:58 +01:00
parent 7fd4476406
commit ff4ecc9172
Signed by: tom
GPG key ID: F17EFE4272D89FF6

View file

@ -125,7 +125,7 @@ func (c *certificateClient) PatchSecretName(ctx context.Context, namespace, name
func extractHosts(routes []map[string]interface{}) []string {
var hosts []string
re := regexp.MustCompile(`Host\(([^)]*)\)`)
re := regexp.MustCompile(`Host\(([^)` + "`" + `]*)\)`)
for _, route := range routes {
var (