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

Function preparePermissionMatcher

src/tools/GrepTool/GrepTool.ts:198–200  ·  view source on GitHub ↗
({ pattern })

Source from the content-addressed store, hash-verified

196 return path || getCwd()
197 },
198 async preparePermissionMatcher({ pattern }) {
199 return rulePattern => matchWildcardPattern(rulePattern, pattern)
200 },
201 async validateInput({ path }): Promise<ValidationResult> {
202 // If path is provided, validate that it exists
203 if (path) {

Callers

nothing calls this directly

Calls 1

matchWildcardPatternFunction · 0.50

Tested by

no test coverage detected