Skip to content

Commit

Permalink
Fix WildcardPatternException when using dt (#2443)
Browse files Browse the repository at this point in the history
Tests with pattern characters in name would fail.
  • Loading branch information
fflaten authored May 13, 2024
1 parent 1a316c3 commit 6d77316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tst/p.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d77316

Please sign in to comment.