blob: 0179e5b460e850474e3502a2a7dbc24159496814 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
exports.uriToZipEntryName = uriToZipEntryName;
function uriToZipEntryName(base, uri) {
if (uri.charAt(0) === "/") {
return uri.substr(1);
} else {
// In general, we should check first and second for trailing and leading slashes,
// but in our specific case this seems to be sufficient
return base + "/" + uri;
}
}
|