(p: string)
| 295 | const cleanInput = input.replace(/```[\s\S]*?```|`[^`]*`/g, ' ') |
| 296 | |
| 297 | const addPath = (p: string) => { |
| 298 | const cleaned = p.replace(/[.,!?;)\]}>">]+$/, '') // Remove trailing punctuation |
| 299 | if (isImageFile(cleaned) && !paths.includes(cleaned)) { |
| 300 | paths.push(cleaned) |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | // @path syntax |
| 305 | for (const match of cleanInput.matchAll(/@([^\s]+)/g)) { |
no test coverage detected