From daaf4ac017a3cbec947d60a32ac35d0e0430f43b Mon Sep 17 00:00:00 2001 From: Alexander Vogt Date: Sun, 1 Sep 2024 11:16:04 +0200 Subject: [PATCH] fix metric filtering --- report-viewer/src/components/ComparisonsTable.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report-viewer/src/components/ComparisonsTable.vue b/report-viewer/src/components/ComparisonsTable.vue index 9af99fe2c..4fad9cd1a 100644 --- a/report-viewer/src/components/ComparisonsTable.vue +++ b/report-viewer/src/components/ComparisonsTable.vue @@ -256,7 +256,7 @@ function getFilteredComparisons(comparisons: ComparisonListElement[]) { [MetricType.MAXIMUM]: [] } metricSearches.forEach((s) => { - const regexResult = /^(?:(avg|max):)?([<>]=?[0-9]+%?$)/.exec(s) + const regexResult = /^(?:(avg|max):)([<>]=?[0-9]+%?$)/.exec(s) if (regexResult) { const metricName = regexResult[1] let metric = MetricType.AVERAGE