MCPcopy Create free account
hub / github.com/MirrowApp/mirrow / escapeForJsString

Function escapeForJsString

packages/core/src/compiler/compiler.ts:424–426  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

422}
423
424function escapeForJsString(value: string): string {
425 return value.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
426}

Callers 1

renderJsDirectivesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected