MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / clean

Function clean

src/resolution/pascal-scope.ts:1400–1400  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

1398function withSubjectsAt(text: string, from: number): { subjects: string[]; end: number } | null {
1399 const subjects: string[] = [];
1400 const clean = (s: string): string => s.replace(/\{[^}]*\}|\(\*[\s\S]*?\*\)|\/\/[^\n]*/g, ' ').replace(/\s+/g, ' ').trim();
1401 let depth = 0;
1402 let partStart = from;
1403 const limit = Math.min(text.length, from + 2000);

Callers 1

withSubjectsAtFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected