MCPcopy Index your code
hub / github.com/nodejs/node / matchesExcludeWorker

Function matchesExcludeWorker

test/fixtures/snapshot/typescript.js:42103–42111  ·  view source on GitHub ↗
(pathToCheck, excludeSpecs, useCaseSensitiveFileNames, currentDirectory, basePath)

Source from the content-addressed store, hash-verified

42101 }
42102 ts.matchesExclude = matchesExclude;
42103 function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNames, currentDirectory, basePath) {
42104 var excludePattern = ts.getRegularExpressionForWildcard(excludeSpecs, ts.combinePaths(ts.normalizePath(currentDirectory), basePath), "exclude");
42105 var excludeRegex = excludePattern && ts.getRegexFromPattern(excludePattern, useCaseSensitiveFileNames);
42106 if (!excludeRegex)
42107 return false;
42108 if (excludeRegex.test(pathToCheck))
42109 return true;
42110 return !ts.hasExtension(pathToCheck) && excludeRegex.test(ts.ensureTrailingDirectorySeparator(pathToCheck));
42111 }
42112 function validateSpecs(specs, errors, disallowTrailingRecursion, jsonSourceFile, specKey) {
42113 return specs.filter(function (spec) {
42114 if (!ts.isString(spec))

Callers 2

isExcludedFileFunction · 0.85
matchesExcludeFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected