(s: string)
| 1398 | function 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); |