Skip to content

Commit 4df5f53

Browse files
committed
Update glob to 10.3.10
v9 drops sorting support, in favor of performance improvements. The sorting function was simply using the built-in `localeCompare`: https://github.com/isaacs/node-glob/blob/v8.1.0/common.js#L20
1 parent 0d631f1 commit 4df5f53

File tree

3 files changed

+149
-209
lines changed

3 files changed

+149
-209
lines changed

localization/preprocess.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const remove_ellipsis = str => str.replace("...", "");
3030
const only_unique = (value, index, self) => self.indexOf(value) === index;
3131

3232
const get_strings = (lang) => {
33-
return glob.sync(`${lang}/**/*.rc`, { cwd: __dirname, absolute: true }).map(
33+
return glob.sync(`${lang}/**/*.rc`, { cwd: __dirname, absolute: true }).sort((a, b) => a.localeCompare(b, "en")).map(
3434
(rc_file) => parse_rc_file(fs.readFileSync(rc_file, "utf16le").replace(/\ufeff/g, ""))
3535
).flat();
3636
};

0 commit comments

Comments
 (0)