MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / _desanitize_match_string

Function _desanitize_match_string

src/tool_system/tools/edit.py:126–134  ·  view source on GitHub ↗
(match_string: str)

Source from the content-addressed store, hash-verified

124
125
126def _desanitize_match_string(match_string: str) -> tuple[str, list[tuple[str, str]]]:
127 result = match_string
128 applied: list[tuple[str, str]] = []
129 for from_str, to_str in _DESANITIZATIONS:
130 before = result
131 result = result.replace(from_str, to_str)
132 if before != result:
133 applied.append((from_str, to_str))
134 return result, applied
135
136
137# -- Smart edit application ----------------------------------------------------

Callers 1

_edit_callFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected