mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 09:20:10 +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) {
|
||||
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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue