MCPcopy Index your code
hub / github.com/codeaashu/claude-code / strStartsWith

Function strStartsWith

src/tools/PowerShellTool/powershellPermissions.ts:181–183  ·  view source on GitHub ↗
(str: string, prefix: string)

Source from the content-addressed store, hash-verified

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

Callers 2

matchesCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected