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

Function match

deps/minimatch/index.js:1193–1200  ·  view source on GitHub ↗
(list, pattern, options = {})

Source from the content-addressed store, hash-verified

1191exports.makeRe = makeRe;
1192exports.minimatch.makeRe = exports.makeRe;
1193var match = (list, pattern, options = {}) => {
1194 const mm = new Minimatch(pattern, options);
1195 list = list.filter((f) => mm.match(f));
1196 if (mm.options.nonull && !list.length) {
1197 list.push(pattern);
1198 }
1199 return list;
1200};
1201exports.match = match;
1202exports.minimatch.match = exports.match;
1203var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;

Callers 1

matchValueFunction · 0.50

Calls 3

filterMethod · 0.65
matchMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…