brace-expansion 1.1.14 → 1.1.15

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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -166,7 +166,7 @@ function expand(str, max, isTop) {
166
166
 
167
167
  N = [];
168
168
 
169
- for (var i = x; test(i, y); i += incr) {
169
+ for (var i = x; test(i, y) && N.length < max; i += incr) {
170
170
  var c;
171
171
  if (isAlphaSequence) {
172
172
  c = String.fromCharCode(i);
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": "1.1.14",
4
+ "version": "1.1.15",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git://github.com/juliangruber/brace-expansion.git"