(assetPath, extensionId)
| 1186 | const manifests = new Map(); |
| 1187 | |
| 1188 | function toExtensionRelativePath(assetPath, extensionId) { |
| 1189 | const normalizedPath = normalizeText(assetPath).replace(/\\/g, "/"); |
| 1190 | if (!normalizedPath) return null; |
| 1191 | const prefix = `extensions/${extensionId}/`; |
| 1192 | return normalizedPath.startsWith(prefix) |
| 1193 | ? normalizedPath.slice(prefix.length) |
| 1194 | : normalizedPath; |
| 1195 | } |
| 1196 | |
| 1197 | function toRelativeScreenshots(screenshots, extensionId) { |
| 1198 | if (!screenshots) return { icon: null, gallery: null }; |
no test coverage detected