From af1e2870b445458146a3a12eb94c7857873e7d5c Mon Sep 17 00:00:00 2001 From: Navy Date: Sat, 25 Jul 2020 11:33:24 +0300 Subject: [PATCH] platform checking --- language/LocaleLoader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/LocaleLoader.js b/language/LocaleLoader.js index 1f53c57..d5727f5 100644 --- a/language/LocaleLoader.js +++ b/language/LocaleLoader.js @@ -74,7 +74,7 @@ class LocaleLoader { } parsed[matched] = text; - for(const [ key, value ] of Object.entries(parsed)) { + if (process.platform === 'win32') for (const [key, value] of Object.entries(parsed)) { parsed[key] = value.replace(/^(\r)|(\r){1,}$/gu, '').replace(/\r/gu, '\n'); }