(path: string)
| 28 | } |
| 29 | |
| 30 | export function normalizeImageZipPath(path: string): string { |
| 31 | let normalized = path.replace(/\\/g, '/'); |
| 32 | if (!normalized.startsWith('images/')) { |
| 33 | normalized = 'images/' + normalized; |
| 34 | } |
| 35 | return normalized; |
| 36 | } |
| 37 | |
| 38 | export function toJpegZipPath(path: string): string { |
| 39 | return normalizeImageZipPath(path).replace(/\.[^.]+$/, '.jpg'); |
no outgoing calls
no test coverage detected