1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-21 04:41:36 +02:00

site/assets/js/search.js: ignore the LGTM alert (#29634)

This commit is contained in:
XhmikosR
2019-11-04 15:42:09 +02:00
committed by GitHub
parent 972369c997
commit 258a56b473

View 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, '')