mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Handle CSS-comments correctly in the preprocess
-function (PR 14886 follow-up)
I overlooked this in PR 14886, sorry about that!
This commit is contained in:
parent
e6a0a953e8
commit
65fe0130f4
3 changed files with 13 additions and 1 deletions
4
external/builder/builder.js
vendored
4
external/builder/builder.js
vendored
|
@ -208,7 +208,9 @@ function preprocess(inFilename, outFilename, defines) {
|
|||
!stack.includes(STATE_IF_FALSE) &&
|
||||
!stack.includes(STATE_ELSE_FALSE)
|
||||
) {
|
||||
writeLine(line.replace(/^\/\/|^<!--/g, " ").replace(/-->$/g, ""));
|
||||
writeLine(
|
||||
line.replace(/^\/\/|^\/\*|^<!--/g, " ").replace(/\*\/$|-->$/g, "")
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue