Skip to content

Commit

Permalink
Merge pull request #247 from ZoomerTedJackson/master
Browse files Browse the repository at this point in the history
Update index.js
  • Loading branch information
jonschlinkert committed Mar 28, 2024
2 parents 90dc0cd + d1641ba commit 81e4d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,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) || !/\{.*?\}/.test(pattern)) {
return [pattern];
}
return braces(pattern, options);
Expand Down

0 comments on commit 81e4d93

Please sign in to comment.