MCPcopy Create free account
hub / github.com/codehamr/codehamr / differsOnlyInWhitespace

Function differsOnlyInWhitespace

internal/tools/edit.go:68–71  ·  view source on GitHub ↗

differsOnlyInWhitespace reports whether oldString matches content at exactly one spot once every whitespace run is collapsed: i.e. the sole mismatch is indentation/tabs/newlines. Bounded with spaces so a match can't straddle a token boundary and mislabel an unrelated near-miss.

(content, oldString string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

EditFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected