From 1be2f82456988c6af66ba519bf375e2d1b372754 Mon Sep 17 00:00:00 2001 From: jhoneill Date: Sun, 8 Dec 2019 12:04:33 +0000 Subject: [PATCH] fix check not detecting commented alias --- CI/PS-CI.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CI/PS-CI.ps1 b/CI/PS-CI.ps1 index bdd1229..a22ba97 100644 --- a/CI/PS-CI.ps1 +++ b/CI/PS-CI.ps1 @@ -99,7 +99,7 @@ if (-not $SkipPreChecks) { $m2 = [regex]::Match($m[0],"^.*?param",17) # 17 = multi-line, ignnore case if (-not $m2.Success) {Show-Warning "function $name has no param() block"} else { - if ($m2.value -match "\[\s*Alias\(\s*.([\w-]+).\s*\)\s*\]") { + if ($m2.value -match "(?