MCPcopy Create free account
hub / github.com/apache/struts-examples / stripFile

Function stripFile

rest-angular/src/main/webapp/js/lib/angular/angular.js:12169–12171  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

12167
12168
12169function stripFile(url) {
12170 return url.substr(0, stripHash(url).lastIndexOf('/') + 1);
12171}
12172
12173/* return the server only (scheme://host:port) */
12174function serverBase(url) {

Callers 1

$LocationProviderFunction · 0.70

Calls 1

stripHashFunction · 0.70

Tested by

no test coverage detected