From 7e6c6924f2295b21cd1bd54b28d4e34321e89ffc Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Fri, 17 Sep 2021 16:27:11 -0400 Subject: [PATCH] make search a bit fuzzier --- docs/assets/plugins/search/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assets/plugins/search/search.js b/docs/assets/plugins/search/search.js index a0a8d9927..097097cfc 100644 --- a/docs/assets/plugins/search/search.js +++ b/docs/assets/plugins/search/search.js @@ -221,7 +221,7 @@ await searchIndex; const hasQuery = query.length > 0; - const matches = hasQuery ? searchIndex.search(`${query}~1`) : []; + const matches = hasQuery ? searchIndex.search(`${query}~2`) : []; let hasResults = hasQuery && matches.length > 0; siteSearch.classList.toggle('site-search--has-results', hasQuery && hasResults);