(pathname: string)
| 44 | ]); |
| 45 | |
| 46 | export function hasArchiveExtension(pathname: string): boolean { |
| 47 | const lower = pathname.toLowerCase(); |
| 48 | return ARCHIVE_EXTENSIONS.some(ext => lower.endsWith(ext)); |
| 49 | } |
| 50 | |
| 51 | export function isArchiveMimeType(type: string): boolean { |
| 52 | return ARCHIVE_MIME_TYPES.has(type); |
no outgoing calls
no test coverage detected