Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
micromatch.parse = (patterns, options) => {
let res = [];
for (let pattern of [].concat(patterns || [])) {
for (let str of braces(String(pattern), options)) {
res.push(picomatch.parse(str, options));
}
}
return res;
};