1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05: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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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