MCPcopy
hub / github.com/ollm/OpenComic / getHost

Function getHost

scripts/server-client.js:5–10  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

3var servers = [];
4
5function getHost(path)
6{
7 path = posixPath(path);
8
9 return app.extract(/^[a-z0-9]+\:\/\/?([^\/\\:]+)(:[0-9]+)?/, path, 1);
10}
11
12function getBaseUrl(path)
13{

Callers 1

clientFunction · 0.85

Calls 1

posixPathFunction · 0.70

Tested by

no test coverage detected