MCPcopy Create free account
hub / github.com/codeaashu/claude-code / hasGlobs

Function hasGlobs

src/utils/sandbox/sandbox-adapter.ts:616–619  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

614
615 // Helper to check if a path has glob characters (excluding trailing /**)
616 const hasGlobs = (path: string): boolean => {
617 const stripped = path.replace(/\/\*\*$/, '')
618 return /[*?[\]]/.test(stripped)
619 }
620
621 // Check all permission rules
622 for (const ruleString of [

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected