fix(certmanager): improve regex to ignore "`" character
This commit is contained in:
parent
3cbb182bd3
commit
e2c47bf9af
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 {
|
func extractHosts(routes []map[string]interface{}) []string {
|
||||||
var hosts []string
|
var hosts []string
|
||||||
re := regexp.MustCompile(`Host\(([^)]*)\)`)
|
re := regexp.MustCompile(`Host\(([^)` + "`" + `]*)\)`)
|
||||||
|
|
||||||
for _, route := range routes {
|
for _, route := range routes {
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue