MCPcopy Create free account
hub / github.com/bclinkinbeard/angular / stripFile

Function stripFile

test/fixtures/foo.js:9215–9217  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

9213
9214
9215function stripFile(url) {
9216 return url.substr(0, stripHash(url).lastIndexOf('/') + 1);
9217}
9218
9219/* return the server only (scheme://host:port) */
9220function serverBase(url) {

Callers 3

LocationHtml5UrlFunction · 0.85
LocationHashbangUrlFunction · 0.85

Calls 1

stripHashFunction · 0.85

Tested by

no test coverage detected