MCPcopy Create free account
hub / github.com/effect-app/libs / isPathInside

Function isPathInside

repos/effect/packages/tools/jsdocs/src/Jsdocs.ts:679–682  ·  view source on GitHub ↗
(parent: string, child: string)

Source from the content-addressed store, hash-verified

677 const prefix = key.slice(0, starIndex)
678 const suffix = key.slice(starIndex + 1)
679 if (!subpath.startsWith(prefix) || !subpath.endsWith(suffix)) {
680 continue
681 }
682 matches.push({
683 key,
684 value,
685 star: subpath.slice(prefix.length, subpath.length - suffix.length),

Callers 2

resolveBarrelImportFunction · 0.85
resolveJSDocImportsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…