Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
3
var
servers = [];
4
5
function
getHost(path)
6
{
7
path = posixPath(path);
8
9
return
app.extract(/^[a-z0-9]+\:\/\/?([^\/\\:]+)(:[0-9]+)?/, path, 1);
10
}
11
12
function
getBaseUrl(path)
13
{
Callers
1
client
Function · 0.85
Calls
1
posixPath
Function · 0.70
Tested by
no test coverage detected