diff --git a/tst/p.psm1 b/tst/p.psm1 index 2d4af132b..96014cbd4 100644 --- a/tst/p.psm1 +++ b/tst/p.psm1 @@ -104,7 +104,7 @@ function t { ) if (-not $script:discovery) { - if (-not $script:filter -or $script:filter -like "*$name") { + if (-not $script:filter -or $script:filter -like "*$([System.Management.Automation.WildcardPattern]::Escape($name))") { try { $script:total++ $null = & $ScriptBlock