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

Function isSedInPlaceEdit

src/tools/BashTool/sedEditParser.ts:40–43  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

38 * Returns true only for simple sed -i 's/pattern/replacement/flags' file commands
39 */
40export function isSedInPlaceEdit(command: string): boolean {
41 const info = parseSedEditCommand(command)
42 return info !== null
43}
44
45/**
46 * Parse a sed edit command and extract the edit information

Callers

nothing calls this directly

Calls 1

parseSedEditCommandFunction · 0.85

Tested by

no test coverage detected