1 parent
5bdc851fa0
commit
67c98c7c0a
19 files changed
+447
-58
No files matched your search
@@ -10,8 +10,8 @@
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$knownNames = @("Kniip", "KnipPlus")
|
||||
$exePattern = '(?i)(^|[\\/"])(Kniip|KnipPlus)\.exe(\b|")'
|
||||
$knownNames = @("Kniip", "KniipTest", "KnipPlus")
|
||||
$exePattern = '(?i)(^|[\\/"])(Kniip(Test)?(-[\d.]+)?|KnipPlus)\.exe(\b|")'
|
||||
|
||||
function Test-KniipCommand([string]$text) {
|
||||
return [bool]($text -match $exePattern)
|
||||
|
||||
Reference in new issue
Block a user