MCPcopy
hub / github.com/systemjs/systemjs / getMatch

Function getMatch

src/common.js:164–173  ·  view source on GitHub ↗
(path, matchObj)

Source from the content-addressed store, hash-verified

162}
163
164function getMatch (path, matchObj) {
165 if (matchObj[path])
166 return path;
167 var sepIndex = path.length;
168 do {
169 var segment = path.slice(0, sepIndex + 1);
170 if (segment in matchObj)
171 return segment;
172 } while ((sepIndex = path.lastIndexOf('/', sepIndex - 1)) !== -1)
173}
174
175function applyPackages (id, packages) {
176 var pkgName = getMatch(id, packages);

Callers 2

applyPackagesFunction · 0.85
resolveImportMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…