expand-range
Advanced tools
Comparing version 1.0.0 to 1.1.0
19
index.js
@@ -18,3 +18,20 @@ /*! | ||
var args = str.split('..'); | ||
if (args.length <= 1) { | ||
var len = args.length; | ||
var makeRe; | ||
if (typeof fn === 'boolean') { | ||
makeRe = fn; | ||
fn = null; | ||
} | ||
if (len === 2 && makeRe) { | ||
return ['[' + args.join('-') + ']']; | ||
} | ||
if (len === 3 && makeRe) { | ||
args[2] = args[2] + '|'; | ||
return fill.apply(fill, args); | ||
} | ||
if (len <= 1) { | ||
return [str]; | ||
@@ -21,0 +38,0 @@ } |
{ | ||
"name": "expand-range", | ||
"description": "Faster, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See the benchmarks.", | ||
"version": "1.0.0", | ||
"description": "Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See the benchmarks. Used by micromatch.", | ||
"version": "1.1.0", | ||
"homepage": "https://github.com/jonschlinkert/expand-range", | ||
@@ -26,8 +26,6 @@ "author": { | ||
"scripts": { | ||
"test": "mocha -R spec", | ||
"docs": "update && license && npmignore && deps && verb", | ||
"all": "npm run test && npm run docs" | ||
"test": "mocha -R spec" | ||
}, | ||
"dependencies": { | ||
"fill-range": "^1.0.0" | ||
"fill-range": "^1.3.0" | ||
}, | ||
@@ -38,2 +36,3 @@ "devDependencies": { | ||
"glob": "^4.3.2", | ||
"minimatch": "^2.0.1", | ||
"mocha": "*", | ||
@@ -59,2 +58,2 @@ "should": "^4.1.0" | ||
] | ||
} | ||
} |
# expand-range [![NPM version](https://badge.fury.io/js/expand-range.svg)](http://badge.fury.io/js/expand-range) | ||
> Faster, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See the benchmarks. | ||
> Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See the benchmarks. Used by micromatch. | ||
@@ -106,4 +106,4 @@ ## Install with [npm](npmjs.org) | ||
_This file was generated by [verb](https://github.com/assemble/verb) on January 04, 2015._ | ||
_This file was generated by [verb](https://github.com/assemble/verb) on January 11, 2015._ | ||
[fill-range]: https://github.com/jonschlinkert/fill-range |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5212
31
6
Updatedfill-range@^1.3.0