MCPcopy Create free account
hub / github.com/Effect-TS/effect / matches

Function matches

packages/tools/jsdocs/src/Jsdocs.ts:533–533  ·  view source on GitHub ↗
(regexp: RegExp)

Source from the content-addressed store, hash-verified

531 const normalizedFilename = normalizePathName(filename)
532 const relativeFilename = normalizePathName(path.relative(options.cwd, filename))
533 const matches = (regexp: RegExp) => regexp.test(normalizedFilename) || regexp.test(relativeFilename)
534 if (include !== undefined && !include.some(matches)) {
535 return false
536 }

Callers 1

Config.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected