MCPcopy
hub / github.com/angular-ui/ui-router / serverBase

Function serverBase

test/angular/1.3/angular.js:10647–10649  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

10645
10646/* return the server only (scheme://host:port) */
10647function serverBase(url) {
10648 return url.substring(0, url.indexOf('/', url.indexOf('//') + 2));
10649}
10650
10651
10652/**

Callers 1

$LocationProviderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected