fix(certmanager): improve regex to ignore "`" character
This commit is contained in:
parent
065b04ba39
commit
0ae856a894
1 changed files with 1 additions and 0 deletions
|
@ -140,6 +140,7 @@ func extractHosts(routes []map[string]interface{}) []string {
|
||||||
}
|
}
|
||||||
|
|
||||||
if match, ok = route["match"].(string); ok {
|
if match, ok = route["match"].(string); ok {
|
||||||
|
match = strings.ReplaceAll(match, "`", "")
|
||||||
hostMatches := re.FindAllStringSubmatch(match, -1)
|
hostMatches := re.FindAllStringSubmatch(match, -1)
|
||||||
for _, match := range hostMatches {
|
for _, match := range hostMatches {
|
||||||
if len(match) > 1 {
|
if len(match) > 1 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue