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

Function matchesPatternWithTrailer

test/fixtures/snapshot/typescript.js:44060–44067  ·  view source on GitHub ↗
(target, name)

Source from the content-addressed store, hash-verified

44058 }
44059 }
44060 function matchesPatternWithTrailer(target, name) {
44061 if (ts.endsWith(target, "*"))
44062 return false; // handled by next case in loop
44063 var starPos = target.indexOf("*");
44064 if (starPos === -1)
44065 return false; // handled by last case in loop
44066 return ts.startsWith(name, target.substring(0, starPos)) && ts.endsWith(name, target.substring(starPos + 1));
44067 }
44068 }
44069 /**
44070 * Gets the self-recursive function specialized to retrieving the targeted import/export element for the given resolution configuration

Callers 1

Calls 1

indexOfMethod · 0.45

Tested by

no test coverage detected