We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 972369c commit 258a56bCopy full SHA for 258a56b
site/assets/js/search.js
@@ -40,7 +40,7 @@
40
// When in production, return the result as is,
41
// otherwise remove our url from it.
42
// eslint-disable-next-line no-negated-condition
43
- hit.url = currentUrl.indexOf(liveUrl) !== -1 ?
+ hit.url = currentUrl.indexOf(liveUrl) !== -1 ? // lgtm [js/incomplete-url-substring-sanitization]
44
hit.url :
45
hit.url.replace(liveUrl, '')
46
0 commit comments