platform checking

This commit is contained in:
Erik 2020-07-25 11:33:24 +03:00
parent dca4b74ca7
commit af1e2870b4

View File

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