brace-expansion 2.1.0 → 2.1.1

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
@@ -163,7 +163,7 @@ function expand(str, max, isTop) {
163
163
 
164
164
  N = [];
165
165
 
166
- for (var i = x; test(i, y); i += incr) {
166
+ for (var i = x; test(i, y) && N.length < max; i += incr) {
167
167
  var c;
168
168
  if (isAlphaSequence) {
169
169
  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": "2.1.0",
4
+ "version": "2.1.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git://github.com/juliangruber/brace-expansion.git"