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

Function permissionRuleExtractPrefix

src/utils/sandbox/sandbox-adapter.ts:78–81  ·  view source on GitHub ↗
(permissionRule: string)

Source from the content-addressed store, hash-verified

76}
77
78function permissionRuleExtractPrefix(permissionRule: string): string | null {
79 const match = permissionRule.match(/^(.+):\*$/)
80 return match?.[1] ?? null
81}
82
83/**
84 * Resolve Claude Code-specific path patterns for sandbox-runtime.

Callers 3

addToExcludedCommandsFunction · 0.70
preparePermissionMatcherFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected