(base, uri)
| 2107 | exports.replaceFragment = replaceFragment; |
| 2108 | |
| 2109 | function uriToZipEntryName(base, uri) { |
| 2110 | if (uri.charAt(0) === "/") { |
| 2111 | return uri.substr(1); |
| 2112 | } else { |
| 2113 | // In general, we should check first and second for trailing and leading slashes, |
| 2114 | // but in our specific case this seems to be sufficient |
| 2115 | return base + "/" + uri; |
| 2116 | } |
| 2117 | } |
| 2118 | |
| 2119 | |
| 2120 | function replaceFragment(uri, fragment) { |
nothing calls this directly
no outgoing calls
no test coverage detected