expand testing on Node.js versions (#3779)

This commit is contained in:
Alex Lam S.L
2020-04-14 03:13:42 +01:00
committed by GitHub
parent 77261e1ee0
commit c4d28e3b2a
8 changed files with 24 additions and 22 deletions

View File

@@ -337,7 +337,7 @@ function simple_glob(glob) {
.replace(/\?/g, "[^/\\\\]") + "$";
var mod = process.platform === "win32" ? "i" : "";
var rx = new RegExp(pattern, mod);
var results = entries.filter(function(name) {
var results = entries.sort().filter(function(name) {
return rx.test(name);
}).map(function(name) {
return path.join(dir, name);