forked from Galactic/galactic-bot
trim testing
This commit is contained in:
parent
bbfd575983
commit
ce7c2fd931
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user