diff --git a/diff/report.go b/diff/report.go index 4bfd830c..62765e4c 100644 --- a/diff/report.go +++ b/diff/report.go @@ -193,7 +193,7 @@ func setupTemplateReport(r *Report) { // report with template output will only have access to ReportTemplateSpec. // This function reverts parsedMetadata.String() func (t *ReportTemplateSpec) loadFromKey(key string) error { - pattern := regexp.MustCompile(`(?P[a-z0-9-]+), (?P[a-z0-9-]+), (?P\w+) \((?P[a-z0-9.]+)\)`) + pattern := regexp.MustCompile(`(?P[a-z0-9-]+), (?P[a-z0-9-]+), (?P\w+) \((?P[^)]+)\)`) matches := pattern.FindStringSubmatch(key) if len(matches) > 1 { t.Namespace = matches[1]