(filePath: string)
| 46 | ]); |
| 47 | |
| 48 | export function isImageFile(filePath: string): boolean { |
| 49 | const ext = filePath.split(".").pop()?.toLowerCase() ?? ""; |
| 50 | return IMAGE_EXTENSIONS.has(ext); |
| 51 | } |
| 52 | |
| 53 | export function detectLanguage(filePath: string): string { |
| 54 | const filename = filePath.split("/").pop()?.toLowerCase() ?? ""; |
no test coverage detected