Skip to content

Commit

Permalink
fix(brace-expansion): ignore only blocks that begins with $
Browse files Browse the repository at this point in the history
Close: #150
  • Loading branch information
roggervalf authored and isaacs committed Feb 15, 2022
1 parent 048ada0 commit 58b72d3
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 22 deletions.
62 changes: 42 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"node": ">=10"
},
"dependencies": {
"brace-expansion": "^1.1.7"
"brace-expansion": "^2.0.1"
},
"devDependencies": {
"tap": "^15.1.6"
Expand Down
10 changes: 9 additions & 1 deletion test/brace-expand.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,15 @@ tap.test('brace expansion', function (t) {
'a{b{cefxh',
'a{b{cefy{}gh'
]
]
],
[
'{a,b}${c}${d}',
['a${c}${d}','b${c}${d}']
],
[
'${a}${b}{c,d}',
['${a}${b}c','${a}${b}d']
],
]
patterns.forEach(function (tc) {
var p = tc[0],
Expand Down

0 comments on commit 58b72d3

Please sign in to comment.