Merge pull request #11992 from Snuffleupagus/preprocessor-rm-HTML-comment-trailing-whitespace

Prevent the (old) preprocessor from appending trailing whitespace when removing closing HTML comments
This commit is contained in:
Tim van der Meij 2020-06-11 23:40:39 +02:00 committed by GitHub
commit 63a7aaa6f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,7 @@ function preprocess(inFilename, outFilename, defines) {
!stack.includes(STATE_IF_FALSE) &&
!stack.includes(STATE_ELSE_FALSE)
) {
writeLine(line.replace(/^\/\/|^<!--|-->$/g, " "));
writeLine(line.replace(/^\/\/|^<!--/g, " ").replace(/-->$/g, ""));
}
}
}