committed by
GitHub
parent
20d2b4f98d
commit
e4f3964f67
6
node_modules/micromatch/index.js
generated
vendored
6
node_modules/micromatch/index.js
generated
vendored
@ -155,10 +155,10 @@ micromatch.not = (list, patterns, options = {}) => {
|
||||
items.push(state.output);
|
||||
};
|
||||
|
||||
let matches = micromatch(list, patterns, { ...options, onResult });
|
||||
let matches = new Set(micromatch(list, patterns, { ...options, onResult }));
|
||||
|
||||
for (let item of items) {
|
||||
if (!matches.includes(item)) {
|
||||
if (!matches.has(item)) {
|
||||
result.add(item);
|
||||
}
|
||||
}
|
||||
@ -408,7 +408,7 @@ micromatch.scan = (...args) => picomatch.scan(...args);
|
||||
*
|
||||
* ```js
|
||||
* const mm = require('micromatch');
|
||||
* const state = mm(pattern[, options]);
|
||||
* const state = mm.parse(pattern[, options]);
|
||||
* ```
|
||||
* @param {String} `glob`
|
||||
* @param {Object} `options`
|
||||
|
Reference in New Issue
Block a user