Skip to content

Commit

Permalink
Merge pull request #1959 from jplag/report-viewer/fix-filter
Browse files Browse the repository at this point in the history
Fix filtering by metric
  • Loading branch information
tsaglam authored Sep 3, 2024
2 parents 04905d0 + daaf4ac commit 644cdb8
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 644cdb8

Please sign in to comment.