From 0bf804c338aa0fc49d2a0656a4b1552014403f1f Mon Sep 17 00:00:00 2001 From: Mitchell Borrego Date: Tue, 13 Sep 2022 11:11:19 -0400 Subject: [PATCH] fix: update micromatch regex (#635) * Update src/vendor/micromatch/index.js Co-authored-by: Joe Becher <71270647+drazisil-codecov@users.noreply.github.com> --- src/vendor/micromatch/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vendor/micromatch/index.js b/src/vendor/micromatch/index.js index 308a23d2c..ec9afe226 100644 --- a/src/vendor/micromatch/index.js +++ b/src/vendor/micromatch/index.js @@ -459,7 +459,7 @@ micromatch.parse = (patterns, options) => { micromatch.braces = (pattern, options) => { if (typeof pattern !== 'string') throw new TypeError('Expected a string') - if ((options && options.nobrace === true) || !/\{.*\}/.test(pattern)) { + if ((options && options.nobrace === true) || !/\^{(1,)[^\}]*/.test(pattern)) { return [pattern] } return braces(pattern, options)