MCPcopy
hub / github.com/continuedev/continue / getCleanUriPath

Function getCleanUriPath

core/util/uri.ts:18–23  ·  view source on GitHub ↗
(uri: string)

Source from the content-addressed store, hash-verified

16}
17
18export function getCleanUriPath(uri: string) {
19 const path = URI.parse(uri).path ?? "";
20 let clean = path.replace(/^\//, ""); // remove start slash
21 clean = clean.replace(/\/$/, ""); // remove end slash
22 return clean;
23}
24
25export function findUriInDirs(
26 uri: string,

Callers 5

createNewFileImplFunction · 0.90
shouldApplyRuleFunction · 0.90
getRegistryClientFunction · 0.90
findUriInDirsFunction · 0.85
getUriPathBasenameFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected