Skip to content

Commit

Permalink
fix metric filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Sep 1, 2024
1 parent f24f83c commit daaf4ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report-viewer/src/components/ComparisonsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit daaf4ac

Please sign in to comment.