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

Function isPatternMatch

test/fixtures/snapshot/typescript.js:2429–2434  ·  view source on GitHub ↗
(_a, candidate)

Source from the content-addressed store, hash-verified

2427 }
2428 ts.tryRemovePrefix = tryRemovePrefix;
2429 function isPatternMatch(_a, candidate) {
2430 var prefix = _a.prefix, suffix = _a.suffix;
2431 return candidate.length >= prefix.length + suffix.length &&
2432 startsWith(candidate, prefix) &&
2433 endsWith(candidate, suffix);
2434 }
2435 function and(f, g) {
2436 return function (arg) { return f(arg) && g(arg); };
2437 }

Callers 2

matchedTextFunction · 0.85
findBestPatternMatchFunction · 0.85

Calls 2

startsWithFunction · 0.70
endsWithFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…