glob
Advanced tools
Comparing version 7.1.6 to 7.1.7
@@ -1,3 +0,1 @@ | ||
exports.alphasort = alphasort | ||
exports.alphasorti = alphasorti | ||
exports.setopts = setopts | ||
@@ -20,8 +18,4 @@ exports.ownProp = ownProp | ||
function alphasorti (a, b) { | ||
return a.toLowerCase().localeCompare(b.toLowerCase()) | ||
} | ||
function alphasort (a, b) { | ||
return a.localeCompare(b) | ||
return a.localeCompare(b, 'en') | ||
} | ||
@@ -154,3 +148,3 @@ | ||
if (!self.nosort) | ||
all = all.sort(self.nocase ? alphasorti : alphasort) | ||
all = all.sort(alphasort) | ||
@@ -157,0 +151,0 @@ // at *some* point we statted all of these |
@@ -54,4 +54,2 @@ // Approach: | ||
var common = require('./common.js') | ||
var alphasort = common.alphasort | ||
var alphasorti = common.alphasorti | ||
var setopts = common.setopts | ||
@@ -58,0 +56,0 @@ var ownProp = common.ownProp |
@@ -5,3 +5,3 @@ { | ||
"description": "a little globber", | ||
"version": "7.1.6", | ||
"version": "7.1.7", | ||
"repository": { | ||
@@ -31,9 +31,14 @@ "type": "git", | ||
"rimraf": "^2.2.8", | ||
"tap": "^12.0.1", | ||
"tap": "^15.0.6", | ||
"tick": "0.0.6" | ||
}, | ||
"tap": { | ||
"before": "test/00-setup.js", | ||
"after": "test/zz-cleanup.js", | ||
"jobs": 1 | ||
}, | ||
"scripts": { | ||
"prepublish": "npm run benchclean", | ||
"profclean": "rm -f v8.log profile.txt", | ||
"test": "tap test/*.js --cov", | ||
"test": "tap", | ||
"test-regen": "npm run profclean && TEST_REGEN=1 node test/00-setup.js", | ||
@@ -40,0 +45,0 @@ "bench": "bash benchmark.sh", |
@@ -10,3 +10,3 @@ # Glob | ||
![](logo/glob.png) | ||
![a fun cartoon logo made of glob characters](logo/glob.png) | ||
@@ -13,0 +13,0 @@ ## Usage |
@@ -14,4 +14,2 @@ module.exports = globSync | ||
var common = require('./common.js') | ||
var alphasort = common.alphasort | ||
var alphasorti = common.alphasorti | ||
var setopts = common.setopts | ||
@@ -18,0 +16,0 @@ var ownProp = common.ownProp |
55910
1239