brace-expansion 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +4 -1
package/index.js
CHANGED
|
@@ -144,7 +144,7 @@ function expand (str, isTop) {
|
|
|
144
144
|
const isOptions = m.body.indexOf(',') >= 0
|
|
145
145
|
if (!isSequence && !isOptions) {
|
|
146
146
|
// {a},b}
|
|
147
|
-
if (m.post.match(
|
|
147
|
+
if (m.post.match(/,(?!,).*\}/)) {
|
|
148
148
|
str = m.pre + '{' + m.body + escClose + m.post
|
|
149
149
|
return expand(str)
|
|
150
150
|
}
|
|
@@ -176,7 +176,7 @@ function expand (str, isTop) {
|
|
|
176
176
|
const y = numeric(n[1])
|
|
177
177
|
const width = Math.max(n[0].length, n[1].length)
|
|
178
178
|
let incr = n.length === 3
|
|
179
|
-
? Math.abs(numeric(n[2]))
|
|
179
|
+
? Math.max(Math.abs(numeric(n[2])), 1)
|
|
180
180
|
: 1
|
|
181
181
|
let test = lte
|
|
182
182
|
const reverse = y < x
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brace-expansion",
|
|
3
3
|
"description": "Brace expansion as known from sh/bash",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git://github.com/juliangruber/brace-expansion.git"
|
|
@@ -46,5 +46,8 @@
|
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">= 18"
|
|
49
|
+
},
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"tag": "3.x"
|
|
49
52
|
}
|
|
50
53
|
}
|