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 d0b35a1 commit 6e8c7d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/gulpfile.editor.js
Original file line number Diff line number Diff line change
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 6e8c7d2

Please sign in to comment.