]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
site/assets/js/search.js: ignore the LGTM alert (#29634)
authorXhmikosR <xhmikosr@gmail.com>
Mon, 4 Nov 2019 13:42:09 +0000 (15:42 +0200)
committerGitHub <noreply@github.com>
Mon, 4 Nov 2019 13:42:09 +0000 (15:42 +0200)
site/assets/js/search.js

index fcff6f6371cff628cd70c455c5cf92356718a613..ab57ad2f0030581ba1ae5d09793fbacfb762ebef 100644 (file)
@@ -40,7 +40,7 @@
         // When in production, return the result as is,
         // otherwise remove our url from it.
         // eslint-disable-next-line no-negated-condition
-        hit.url = currentUrl.indexOf(liveUrl) !== -1 ?
+        hit.url = currentUrl.indexOf(liveUrl) !== -1 ? // lgtm [js/incomplete-url-substring-sanitization]
           hit.url :
           hit.url.replace(liveUrl, '')