From: XhmikosR Date: Mon, 4 Nov 2019 13:42:09 +0000 (+0200) Subject: site/assets/js/search.js: ignore the LGTM alert (#29634) X-Git-Tag: v5.0.0-alpha1~672 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=258a56b473edea843eb20e80bbc7bf49eb040a32;p=thirdparty%2Fbootstrap.git site/assets/js/search.js: ignore the LGTM alert (#29634) --- diff --git a/site/assets/js/search.js b/site/assets/js/search.js index fcff6f6371..ab57ad2f00 100644 --- a/site/assets/js/search.js +++ b/site/assets/js/search.js @@ -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, '')