Skip to content

Commit 833f27c

Browse files
committed
Disable a LGTM warning, again (PR 13787 follow-up)
Apparently I didn't put one of the disable comments on the *correct* line, since I didn't read the instructions carefully enough, so let's try again. Note that, most unfortunately, disabling of warnings isn't applied until *after* a patch has been merged.
1 parent aad0316 commit 833f27c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/file_spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class FileSpec {
6666
get filename() {
6767
if (!this._filename && this.root) {
6868
const filename = pickPlatformItem(this.root) || "unnamed";
69-
this._filename = stringToPDFString(filename)
70-
.replace(/\\\\/g, "\\") // lgtm [js/double-escaping]
69+
this._filename = stringToPDFString(filename) // lgtm [js/double-escaping]
70+
.replace(/\\\\/g, "\\")
7171
.replace(/\\\//g, "/")
7272
.replace(/\\/g, "/");
7373
}

0 commit comments

Comments
 (0)