Fixes microsoft/monaco-editor#1729: Fix running the build on Windows (files with \r\n)

This commit is contained in:
Alexandru Dima 2020-01-06 10:08:36 +01:00
parent ea43fa272c
commit 38b4e2ec0e
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0

View file

@ -476,7 +476,7 @@ function addPluginDTS() {
}
function toExternalDTS(contents) {
let lines = contents.split('\n');
let lines = contents.split(/\r\n|\r|\n/);
let killNextCloseCurlyBrace = false;
for (let i = 0; i < lines.length; i++) {
let line = lines[i];