1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #13848 from Snuffleupagus/rm-lgtm

Remove the LGTM configuration and inline disable comments (issue 13829)
This commit is contained in:
Tim van der Meij 2021-08-03 23:13:05 +02:00 committed by GitHub
commit ad90fe90ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 12 deletions

View file

@ -66,7 +66,7 @@ class FileSpec {
get filename() {
if (!this._filename && this.root) {
const filename = pickPlatformItem(this.root) || "unnamed";
this._filename = stringToPDFString(filename) // lgtm [js/double-escaping]
this._filename = stringToPDFString(filename)
.replace(/\\\\/g, "\\")
.replace(/\\\//g, "/")
.replace(/\\/g, "/");