mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Enable the ESLint no-useless-escape
rule (PR 12551 follow-up)
Note that a number of these cases are covered by existing unit-tests, and a few others only matter for the development/build scripts. Furthermore, I've also tried to the best of my ability to test each case *manually* to hopefully further reduce the likelihood of this patch introducing any bugs. Please find additional details about the ESLint rule at https://eslint.org/docs/rules/no-useless-escape
This commit is contained in:
parent
e3851a6765
commit
9602844368
9 changed files with 11 additions and 10 deletions
2
external/builder/builder.js
vendored
2
external/builder/builder.js
vendored
|
@ -202,7 +202,7 @@ function preprocessCSS(mode, source, destination) {
|
|||
}
|
||||
|
||||
function expandImports(content, baseUrl) {
|
||||
return content.replace(/^\s*@import\s+url\(([^\)]+)\);\s*$/gm, function (
|
||||
return content.replace(/^\s*@import\s+url\(([^)]+)\);\s*$/gm, function (
|
||||
all,
|
||||
url
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue