(ext: string)
| 4 | * that arise from non-filename document names (e.g. "Sim.ai <> RVTech"). |
| 5 | */ |
| 6 | export function isAlphanumericExtension(ext: string): boolean { |
| 7 | return /^[a-z0-9]+$/.test(ext) |
| 8 | } |
| 9 | |
| 10 | function extractExtension(fileName: string): string { |
| 11 | const lastDot = fileName.lastIndexOf('.') |
no test coverage detected