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