From 427f156111a6d4db27b1d4b9a4491621f12cbf18 Mon Sep 17 00:00:00 2001 From: Alex Brown Date: Wed, 16 Jun 2021 18:41:02 +0100 Subject: [PATCH] Fix 'template' output not including resources with '.' in the name --- diff/report.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff/report.go b/diff/report.go index 4bfd830c..42117e1a 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[a-z0-9.]+)\)`) matches := pattern.FindStringSubmatch(key) if len(matches) > 1 { t.Namespace = matches[1]