Skip to content

Commit 258a56b

Browse files
authored
site/assets/js/search.js: ignore the LGTM alert (twbs#29634)
1 parent 972369c commit 258a56b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/assets/js/search.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
// When in production, return the result as is,
4141
// otherwise remove our url from it.
4242
// eslint-disable-next-line no-negated-condition
43-
hit.url = currentUrl.indexOf(liveUrl) !== -1 ?
43+
hit.url = currentUrl.indexOf(liveUrl) !== -1 ? // lgtm [js/incomplete-url-substring-sanitization]
4444
hit.url :
4545
hit.url.replace(liveUrl, '')
4646

0 commit comments

Comments
 (0)