MCPcopy Create free account
hub / github.com/nodejs/node / getRegularExpressionsForWildcards

Function getRegularExpressionsForWildcards

test/fixtures/snapshot/typescript.js:20538–20545  ·  view source on GitHub ↗
(specs, basePath, usage)

Source from the content-addressed store, hash-verified

20536 }
20537 ts.getRegularExpressionForWildcard = getRegularExpressionForWildcard;
20538 function getRegularExpressionsForWildcards(specs, basePath, usage) {
20539 if (specs === undefined || specs.length === 0) {
20540 return undefined;
20541 }
20542 return ts.flatMap(specs, function (spec) {
20543 return spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage]);
20544 });
20545 }
20546 ts.getRegularExpressionsForWildcards = getRegularExpressionsForWildcards;
20547 /**
20548 * An "includes" path "foo" is implicitly a glob "foo/** /*" (without the space) if its last component has no extension,

Callers 2

getFileMatcherPatternsFunction · 0.85

Calls 2

getSubPatternFromSpecFunction · 0.85
flatMapMethod · 0.80

Tested by

no test coverage detected