MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / escape

Function escape

graph-ui/src/browser-ai/code-facts.ts:33–33  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

31const indentOf = (line: string) => line.length - line.trimStart().length;
32const bounded = (line: string) => line.length > LINE ? `${line.slice(0, LINE - 1)}…` : line;
33const escape = (name: string) => name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
34
35/** Brackets still open after `text`, outside strings. */
36function openBrackets(text: string): number {

Callers 2

pythonFactsFunction · 0.70
definitionLineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected