mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 07:00:11 +01:00
Fixes microsoft/monaco-editor#1729: Fix running the build on Windows (files with \r\n)
This commit is contained in:
parent
ea43fa272c
commit
38b4e2ec0e
1 changed files with 1 additions and 1 deletions
|
|
@ -476,7 +476,7 @@ function addPluginDTS() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function toExternalDTS(contents) {
|
function toExternalDTS(contents) {
|
||||||
let lines = contents.split('\n');
|
let lines = contents.split(/\r\n|\r|\n/);
|
||||||
let killNextCloseCurlyBrace = false;
|
let killNextCloseCurlyBrace = false;
|
||||||
for (let i = 0; i < lines.length; i++) {
|
for (let i = 0; i < lines.length; i++) {
|
||||||
let line = lines[i];
|
let line = lines[i];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue