(filename: string)
| 202 | * Extract file extension from filename |
| 203 | */ |
| 204 | export function getFileExtension(filename: string): string { |
| 205 | const lastDot = filename.lastIndexOf('.') |
| 206 | return lastDot !== -1 ? filename.slice(lastDot + 1).toLowerCase() : '' |
| 207 | } |
| 208 | |
| 209 | const EXTENSION_TO_MIME: Record<string, string> = { |
| 210 | // Images |
no outgoing calls
no test coverage detected