(text: string)
| 324 | * @returns Boolean indicating if text is an image path |
| 325 | */ |
| 326 | export function isImageFilePath(text: string): boolean { |
| 327 | const cleaned = removeOuterQuotes(text.trim()) |
| 328 | const unescaped = stripBackslashEscapes(cleaned) |
| 329 | return IMAGE_EXTENSION_REGEX.test(unescaped) |
| 330 | } |
| 331 | |
| 332 | /** |
| 333 | * Clean and normalize a text string that might be an image file path |
no test coverage detected