forked from Galactic/galactic-bot
platform checking
This commit is contained in:
parent
dca4b74ca7
commit
af1e2870b4
@ -74,7 +74,7 @@ class LocaleLoader {
|
|||||||
}
|
}
|
||||||
parsed[matched] = text;
|
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');
|
parsed[key] = value.replace(/^(\r)|(\r){1,}$/gu, '').replace(/\r/gu, '\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user