trim testing

This commit is contained in:
nolan 2020-07-29 12:28:09 -07:00
parent bbfd575983
commit ce7c2fd931

View File

@ -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;
}