Skip to content

Commit 57f6235

Browse files
authored
fix(deps): update micromatch to 4.0.8 (#1239)
1 parent d2a62af commit 57f6235

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

dist/index.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -55842,7 +55842,12 @@ const util = __nccwpck_require__(3837);
5584255842
const braces = __nccwpck_require__(610);
5584355843
const picomatch = __nccwpck_require__(8569);
5584455844
const utils = __nccwpck_require__(479);
55845-
const isEmptyString = val => val === '' || val === './';
55845+
55846+
const isEmptyString = v => v === '' || v === './';
55847+
const hasBraces = v => {
55848+
const index = v.indexOf('{');
55849+
return index > -1 && v.indexOf('}', index) > -1;
55850+
};
5584655851

5584755852
/**
5584855853
* Returns an array of strings that match one or more glob patterns.
@@ -56283,7 +56288,7 @@ micromatch.parse = (patterns, options) => {
5628356288

5628456289
micromatch.braces = (pattern, options) => {
5628556290
if (typeof pattern !== 'string') throw new TypeError('Expected a string');
56286-
if ((options && options.nobrace === true) || !/\{.*\}/.test(pattern)) {
56291+
if ((options && options.nobrace === true) || !hasBraces(pattern)) {
5628756292
return [pattern];
5628856293
}
5628956294
return braces(pattern, options);
@@ -56302,6 +56307,8 @@ micromatch.braceExpand = (pattern, options) => {
5630256307
* Expose micromatch
5630356308
*/
5630456309

56310+
// exposed for tests
56311+
micromatch.hasBraces = hasBraces;
5630556312
module.exports = micromatch;
5630656313

5630756314

examples/webpack/package-lock.json

+5-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+5-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)