MCPcopy Create free account
hub / github.com/CoderLuii/HolyClaude / replaceRequired

Function replaceRequired

scripts/patch-cloudcli-web-terminal-rendering.mjs:82–92  ·  view source on GitHub ↗
(source, oldText, newText)

Source from the content-addressed store, hash-verified

80}
81
82function replaceRequired(source, oldText, newText) {
83 if (source.includes(newText)) {
84 return source;
85 }
86
87 if (!source.includes(oldText)) {
88 fail();
89 }
90
91 return source.replace(oldText, newText);
92}
93
94function assertServerPatched(source) {
95 if (

Callers 2

patchServerFunction · 0.85
patchIndexFunction · 0.85

Calls 1

failFunction · 0.85

Tested by

no test coverage detected