MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / stripFile

Function stripFile

web/static/bower_components/angular/angular.js:11410–11412  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

11408
11409
11410function stripFile(url) {
11411 return url.substr(0, stripHash(url).lastIndexOf('/') + 1);
11412}
11413
11414/* return the server only (scheme://host:port) */
11415function serverBase(url) {

Callers 1

$LocationProviderFunction · 0.85

Calls 1

stripHashFunction · 0.85

Tested by

no test coverage detected