MCPcopy
hub / github.com/witheve/Eve / replace

Function replace

src/codemirror.js:13963–13967  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13961 });
13962 }
13963 function replace() {
13964 var text = cm.getRange(searchCursor.from(), searchCursor.to());
13965 var newText = text.replace(query, replaceWith);
13966 searchCursor.replace(newText);
13967 }
13968 function next() {
13969 // The below only loops to skip over multiple occurrences on the same
13970 // line when 'global' is not true.

Callers 3

replaceAllFunction · 0.85
onPromptKeyDownFunction · 0.85
replacerFunction · 0.85

Calls 3

getRangeMethod · 0.80
fromMethod · 0.80
toMethod · 0.80

Tested by

no test coverage detected