summaryrefslogtreecommitdiff
path: root/node_modules/multimatch/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/multimatch/index.js')
-rw-r--r--node_modules/multimatch/index.js30
1 files changed, 0 insertions, 30 deletions
diff --git a/node_modules/multimatch/index.js b/node_modules/multimatch/index.js
deleted file mode 100644
index a0833b52..00000000
--- a/node_modules/multimatch/index.js
+++ /dev/null
@@ -1,30 +0,0 @@
-'use strict';
-const minimatch = require('minimatch');
-const arrayUnion = require('array-union');
-const arrayDiffer = require('array-differ');
-const arrify = require('arrify');
-
-module.exports = (list, patterns, options = {}) => {
- list = arrify(list);
- patterns = arrify(patterns);
-
- if (list.length === 0 || patterns.length === 0) {
- return [];
- }
-
- let result = [];
- for (const item of list) {
- for (let pattern of patterns) {
- let process = arrayUnion;
-
- if (pattern[0] === '!') {
- pattern = pattern.slice(1);
- process = arrayDiffer;
- }
-
- result = process(result, minimatch.match([item], pattern, options));
- }
- }
-
- return result;
-};