MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / blank

Function blank

packages/hosts/mcp/src/create-artifact.ts:114–114  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

112 * offsets stay valid and their contents can't be mistaken for code. */
113const withLiteralsBlanked = (code: string): string => {
114 const blank = (text: string): string => text.replace(/[^\n]/g, " ");
115 return code.replace(
116 // Order matters: line comment, block comment, then each quote flavour.
117 /\/\/[^\n]*|\/\*[\s\S]*?\*\/|'(?:\\.|[^'\\\n])*'|"(?:\\.|[^"\\\n])*"|`(?:\\.|[^`\\])*`/g,

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected