(list, pattern, options = {})
| 1191 | exports.makeRe = makeRe; |
| 1192 | exports.minimatch.makeRe = exports.makeRe; |
| 1193 | var 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 | }; |
| 1201 | exports.match = match; |
| 1202 | exports.minimatch.match = exports.match; |
| 1203 | var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/; |
no test coverage detected
searching dependent graphs…