Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// label for debugging
mm.multimatch = true;
mi.minimatch = true;
extglob.extglob = true;
bash.bash = true;
/**
* Decorate methods onto multimatch for parity with nanomatch
*/
mm.isMatch = function(files, patterns, options) {
return mm(utils.arrayify(files), patterns, options).length > 0;
};
mm.contains = function(files, patterns, options) {
return mm.isMatch(files, patterns, options);
};
mm.match = function(files, patterns, options) {
return mm(utils.arrayify(files), patterns, options);
};
mm.makeRe = function(pattern, options) {
return mi.makeRe(pattern, options);
};
/**
* Decorate methods onto minimatch for parity with nanomatch
*/
mi.isMatch = function(file, pattern, options) {