(str: string, prefix: string)
| 179 | return a.toLowerCase() === b.toLowerCase() |
| 180 | } |
| 181 | function strStartsWith(str: string, prefix: string): boolean { |
| 182 | return str.toLowerCase().startsWith(prefix.toLowerCase()) |
| 183 | } |
| 184 | // SECURITY: stripModulePrefix on RULE names widens the |
| 185 | // secondary-canonical match — a deny rule `Module\Remove-Item:*` blocking |
| 186 | // `rm` is the intent (fail-safe over-match), but an allow rule |
no outgoing calls
no test coverage detected