diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-04-14 03:13:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 10:13:42 +0800 |
commit | c4d28e3b2a2d82c7e5e3b398513755b507a75e76 (patch) | |
tree | 955bed9c2cfb691ea84abf8476cc2dd0a507f907 /bin/uglifyjs | |
parent | 77261e1ee037f3eea2d5ec80abb1387d4ba5c67e (diff) | |
download | tracifyjs-c4d28e3b2a2d82c7e5e3b398513755b507a75e76.tar.gz tracifyjs-c4d28e3b2a2d82c7e5e3b398513755b507a75e76.zip |
expand testing on Node.js versions (#3779)
Diffstat (limited to 'bin/uglifyjs')
-rwxr-xr-x | bin/uglifyjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs index 2893d87b..4f84d387 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -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); |