MCPcopy Create free account
hub / github.com/Forward-Future/loopy / normalizeBasePath

Function normalizeBasePath

loop-library/worker/src/auth-votes.js:477–480  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

475 `https://${env.PUBLIC_SITE_HOSTNAME || "signals.forwardfuture.com"}`;
476}
477
478function normalizeBasePath(value) {
479 const segments = String(value).split("/").filter(Boolean);
480 return segments.length ? `/${segments.join("/")}` : "";
481}
482
483function stripBasePath(pathname, basePath) {

Callers 4

oauthStartBridgeFunction · 0.85
safeReturnToFunction · 0.85
callbackUrlFunction · 0.85
stripBasePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected