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 065b04ba39
commit 0ae856a894
Signed by: tom
GPG key ID: F17EFE4272D89FF6

View file

@ -140,6 +140,7 @@ func extractHosts(routes []map[string]interface{}) []string {
}
if match, ok = route["match"].(string); ok {
match = strings.ReplaceAll(match, "`", "")
hostMatches := re.FindAllStringSubmatch(match, -1)
for _, match := range hostMatches {
if len(match) > 1 {