MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / norm

Function norm

src/cli/modes/final-dedupe.ts:139–139  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

137 // Find candidate restart points: a later occurrence of the text's own opening.
138 // Use the first ~60 non-space chars as a fingerprint of the answer's start.
139 const norm = (s: string) => s.replace(/\s+/g, ' ').trim();
140 const head = raw.slice(0, Math.min(raw.length, 4000));
141 const fpLen = 60;
142 const fingerprint = norm(head).slice(0, fpLen);

Callers 1

dedupeSelfRepeatedTextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected