(text: string)
| 331 | * @returns Boolean indicating if text is an image path |
| 332 | */ |
| 333 | export function isImageFilePath(text: string): boolean { |
| 334 | const cleaned = removeOuterQuotes(text.trim()) |
| 335 | const unescaped = stripBackslashEscapes(cleaned) |
| 336 | return IMAGE_EXTENSION_REGEX.test(unescaped) |
| 337 | } |
| 338 | |
| 339 | /** |
| 340 | * Clean and normalize a text string that might be an image file path |
no test coverage detected