aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-11-04 15:42:09 +0200
committerGitHub <[email protected]>2019-11-04 15:42:09 +0200
commit258a56b473edea843eb20e80bbc7bf49eb040a32 (patch)
treedc35ab8f1b960531083a2277526a04da51b3d37a
parent972369c997e4113607aaa002edd532e3d256f316 (diff)
downloadbootstrap-258a56b473edea843eb20e80bbc7bf49eb040a32.tar.xz
bootstrap-258a56b473edea843eb20e80bbc7bf49eb040a32.zip
site/assets/js/search.js: ignore the LGTM alert (#29634)
-rw-r--r--site/assets/js/search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/assets/js/search.js b/site/assets/js/search.js
index fcff6f637..ab57ad2f0 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, '')