(path: string)
| 52 | } |
| 53 | |
| 54 | export function isImageFile(path: string): boolean { |
| 55 | const lowerPath = path.toLowerCase(); |
| 56 | return IMAGE_EXTENSIONS.some(ext => lowerPath.endsWith(ext)); |
| 57 | } |
| 58 | |
| 59 | export function getPathSuffixes(path: string): string[] { |
| 60 | const parts = normalizeImagePath(path).split('/'); |
no outgoing calls
no test coverage detected