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

Function getPathWithoutShare

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

Source from the content-addressed store, hash-verified

31}
32
33function getPathWithoutShare(path)
34{
35 path = posixPath(path);
36
37 return app.extract(/^[a-z0-9]+\:\/\/?[^\/\\]+\/[^\/\\]+\/(.+)/, path, 1);
38}
39
40function getPort(path)
41{

Callers 1

clientFunction · 0.85

Calls 1

posixPathFunction · 0.70

Tested by

no test coverage detected