MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / matcherCovers

Function matcherCovers

src/resolution/frameworks/next-proxy.ts:322–324  ·  view source on GitHub ↗
(matcher: RegExp, routePath: string, routeFile: string)

Source from the content-addressed store, hash-verified

320
321/** Whether a compiled matcher entry accepts an address the route serves. */
322export function matcherCovers(matcher: RegExp, routePath: string, routeFile: string): boolean {
323 return routeAddresses(routePath, routeFile).some((address) => matcher.test(address));
324}

Callers 3

nextProxyEdgesFunction · 0.90
coversFunction · 0.90

Calls 1

routeAddressesFunction · 0.85

Tested by 1

coversFunction · 0.72