From ce7c2fd9318473fc48bf5f142fb1abacced72f9d Mon Sep 17 00:00:00 2001 From: nolan Date: Wed, 29 Jul 2020 12:28:09 -0700 Subject: [PATCH] trim testing --- language/LocaleLoader.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/language/LocaleLoader.js b/language/LocaleLoader.js index 4c0868b..078b075 100644 --- a/language/LocaleLoader.js +++ b/language/LocaleLoader.js @@ -78,8 +78,11 @@ class LocaleLoader { parsed[matched] = text; for(const [key, value] of Object.entries(parsed)) { - let text = process.platform === 'win32' ? value.replace(/^(\r)|(\r){1,}$/gu, '').replace(/\r/gu, '\n'): value; + let text = process.platform === 'win32' ? value.replace(/^(\r)|(\r){1,}$/gu, '').replace(/\r/gu, '\n') : value; + if(key === 'C_HELP') console.log(text); + if(key === 'C_HELP') console.log('================================ v TRIM v ================================'); if(process.platform === 'linux') text = text.trim(); + if(key === 'C_HELP') console.log(text); parsed[key] = text; }