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:
@@ -40,7 +40,7 @@
|
|||||||
// When in production, return the result as is,
|
// When in production, return the result as is,
|
||||||
// otherwise remove our url from it.
|
// otherwise remove our url from it.
|
||||||
// eslint-disable-next-line no-negated-condition
|
// 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 :
|
||||||
hit.url.replace(liveUrl, '')
|
hit.url.replace(liveUrl, '')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user