MCPcopy
hub / github.com/prisma/prisma / stripRelativePath

Function stripRelativePath

packages/internals/src/resolveOutput.ts:44–49  ·  view source on GitHub ↗
(pathString: string)

Source from the content-addressed store, hash-verified

42}
43
44function stripRelativePath(pathString: string): string {
45 if (pathString.startsWith('./')) {
46 return pathString.slice(2)
47 }
48 return pathString
49}

Callers 1

resolveOutputFunction · 0.85

Calls 1

sliceMethod · 0.45

Tested by

no test coverage detected