diff --git a/WELAFunctions.psm1 b/WELAFunctions.psm1 index 83ff96ae..f97000df 100644 --- a/WELAFunctions.psm1 +++ b/WELAFunctions.psm1 @@ -194,7 +194,7 @@ function ShowRulesCountsByLevel { Write-Host -NoNewline " - " $usableRate | Sort-Object { $levelColorMap.Keys.IndexOf($_.Level) } | ForEach-Object { $color = $levelColorMap[$_.Level] - $level = if ($_.Level -match "informational") { "info" } else { $_.Level } + $level = if ($_.Level -eq "informational") { "info" } else { $_.Level } Write-Host -NoNewline "$($level): $($_.UsableCount) / $($_.TotalCount) ($($_.Percentage)%)" -ForegroundColor $color if ($i -lt $usableRate.Count - 1) {