MCPcopy Index your code
hub / github.com/witheve/Eve / cleanString

Function cleanString

src/runtime/parser.ts:18–27  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

16//-----------------------------------------------------------
17
18function cleanString(str) {
19 let cleaned = str
20 .replace(/\\n/g, "\n")
21 .replace(/\\t/g, "\t")
22 .replace(/\\r/g, "\r")
23 .replace(/\\"/g, "\"")
24 .replace(/\\{/g, "{")
25 .replace(/\\}/g, "}");
26 return cleaned;
27}
28
29function toEnd(node) {
30 if(node instanceof Token) {

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected