MCPcopy Index your code
hub / github.com/ollm/OpenComic / getBaseUrl

Function getBaseUrl

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

Source from the content-addressed store, hash-verified

10}
11
12function getBaseUrl(path)
13{
14 path = posixPath(path);
15
16 return app.extract(/^([a-z0-9]+\:\/\/?[^\/\\:]+)(:[0-9]+)?/, path, 1);
17}
18
19function getShare(path)
20{

Callers

nothing calls this directly

Calls 1

posixPathFunction · 0.70

Tested by

no test coverage detected