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