(s: string)
| 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); |
no outgoing calls
no test coverage detected