(line: string)
| 261 | } |
| 262 | |
| 263 | function extractSortKey(line: string): string { |
| 264 | return line |
| 265 | .trim() |
| 266 | .replace(/^- /, '') |
| 267 | .replace(/\*\*/g, '') |
| 268 | .replace(/\s*\(\[#\d+\].*?\)\s*$/, '') |
| 269 | .toLowerCase(); |
| 270 | } |
| 271 | |
| 272 | function isQuoteLine(line: string): boolean { |
| 273 | return line.includes('—') && (line.includes('Wayne Gretzky') || line.includes('Michael Scott')); |