fix(certmanager): improve regex to ignore "`" character
This commit is contained in:
parent
7fd4476406
commit
ff4ecc9172
1 changed files with 1 additions and 1 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue