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

Function getPatternFromSpec

test/fixtures/snapshot/typescript.js:20555–20558  ·  view source on GitHub ↗
(spec, basePath, usage)

Source from the content-addressed store, hash-verified

20553 }
20554 ts.isImplicitGlob = isImplicitGlob;
20555 function getPatternFromSpec(spec, basePath, usage) {
20556 var pattern = spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage]);
20557 return pattern && "^(".concat(pattern, ")").concat(usage === "exclude" ? "($|/)" : "$");
20558 }
20559 ts.getPatternFromSpec = getPatternFromSpec;
20560 function getSubPatternFromSpec(spec, basePath, usage, _a) {
20561 var singleAsteriskRegexFragment = _a.singleAsteriskRegexFragment, doubleAsteriskRegexFragment = _a.doubleAsteriskRegexFragment, replaceWildcardCharacter = _a.replaceWildcardCharacter;

Callers

nothing calls this directly

Calls 2

getSubPatternFromSpecFunction · 0.85
concatMethod · 0.80

Tested by

no test coverage detected