Skip to content

Commit

Permalink
fix: update micromatch regex (#635)
Browse files Browse the repository at this point in the history
* Update src/vendor/micromatch/index.js

Co-authored-by: Joe Becher <[email protected]>
  • Loading branch information
mitchell-codecov and drazisil-codecov authored Sep 13, 2022
1 parent edad1d1 commit 0bf804c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vendor/micromatch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0bf804c

Please sign in to comment.