Changed to for constant string

This commit is contained in:
aegilops
2023-06-19 11:46:08 +01:00
parent 7c235e3786
commit 1a108fb1c9

View File

@@ -98,6 +98,6 @@ class UnSafeExecutable extends string {
bindingset[this]
UnSafeExecutable() {
this.regexpMatch("^(|.*/)([a-z]*sh|javac?|python.*|perl|[Pp]ower[Ss]hell|php|node|deno|bun|ruby|osascript|cmd|Rscript|groovy)(\\.exe)?$") and
not this.matches("netsh.exe")
not this = "netsh.exe"
}
}