From f3f7bc580ab5f87e4e0101e71732f5dddaa325a9 Mon Sep 17 00:00:00 2001 From: Alexandru Dima Date: Mon, 6 Jan 2020 10:07:35 +0100 Subject: [PATCH] Fixes microsoft/monaco-editor#1729: Fix running the build on Windows (files with \r\n) --- build/gulpfile.editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/gulpfile.editor.js b/build/gulpfile.editor.js index 7f52fbff355..bc11c8b5034 100644 --- a/build/gulpfile.editor.js +++ b/build/gulpfile.editor.js @@ -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];