Explorar o código

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

Alexandru Dima %!s(int64=5) %!d(string=hai) anos
pai
achega
38b4e2ec0e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gulpfile.js

+ 1 - 1
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];