(imageName: string)
| 159 | } |
| 160 | |
| 161 | export function getZipEntryLookupCandidates(imageName: string): string[] { |
| 162 | const normalized = imageName.replace(/\\/g, '/'); |
| 163 | const filename = normalized.split('/').pop() ?? normalized; |
| 164 | const candidates = [ |
| 165 | normalized, |
| 166 | filename, |
| 167 | `images/${normalized}`, |
| 168 | `sparse/0/${normalized}`, |
| 169 | ]; |
| 170 | |
| 171 | return Array.from(new Set(candidates)); |
| 172 | } |
no outgoing calls
no test coverage detected