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

Function normalizeEntry

src/utils/permissions/permissionsLoader.ts:186–187  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

184 // Normalize raw settings entries via roundtrip parse→serialize so legacy
185 // names (e.g. "KillShell") match their canonical form ("TaskStop").
186 const normalizeEntry = (raw: string): string =>
187 permissionRuleValueToString(permissionRuleValueFromString(raw))
188
189 if (!behaviorArray.some(raw => normalizeEntry(raw) === ruleString)) {
190 return false

Callers 1

Calls 2

Tested by

no test coverage detected