Skip to content

Commit

Permalink
Fixes microsoft/monaco-editor#1729: Fix running the build on Windows …
Browse files Browse the repository at this point in the history
…(files with \r\n)
  • Loading branch information
alexdima committed Jan 6, 2020
1 parent bf2dbfc commit f3f7bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/gulpfile.editor.js
Expand Up @@ -197,7 +197,7 @@ const compileEditorESMTask = task.define('compile-editor-esm', () => {
});

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];
Expand Down

0 comments on commit f3f7bc5

Please sign in to comment.