We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77987f3 commit e2a5c92Copy full SHA for e2a5c92
1 file changed
core/globalData.ts
@@ -209,9 +209,9 @@ if (dataPathVar) {
209
//NOTE: Non-ASCII in one of those paths (don't know which) will make NodeJS crash due to a bug in v8 (or something)
210
// when running localization methods like Date.toLocaleString().
211
// There was also an issue with the slash() lib and with the +exec on FXServer
212
-const nonASCIIRegex = /[^\x00-\x80]+/;
+const nonASCIIRegex = /[^\x00-\x80]+/g;
213
const colorNonAscii = (x: string) => chalk.black.bgGreenBright(
214
- x.replace(nonASCIIRegex, (m) => chalk.bgRedBright(m))
+ x.replaceAll(nonASCIIRegex, (m) => chalk.bgRedBright(m))
215
);
216
if (nonASCIIRegex.test(fxsPath) || nonASCIIRegex.test(dataPath)) {
217
fatalError.GlobalData(7, [
0 commit comments