From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- node_modules/multimatch/index.js | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 node_modules/multimatch/index.js (limited to 'node_modules/multimatch/index.js') 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; -}; -- cgit v1.2.3