fix(search): all substrings search
This commit is contained in:
parent
9bae1b1d34
commit
05ab40d70e
2 changed files with 29 additions and 0 deletions
|
@ -0,0 +1,28 @@
|
||||||
|
From 206ce2744cdaa166ee482fba90a879f2688b234a Mon Sep 17 00:00:00 2001
|
||||||
|
From: catvayor <catvayor@katvayor.net>
|
||||||
|
Date: Sat, 21 Dec 2024 10:14:46 +0100
|
||||||
|
Subject: [PATCH] feat: match all substring by default
|
||||||
|
|
||||||
|
---
|
||||||
|
layouts/index.html | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/layouts/index.html b/layouts/index.html
|
||||||
|
index 780ea78..c50ada4 100644
|
||||||
|
--- a/layouts/index.html
|
||||||
|
+++ b/layouts/index.html
|
||||||
|
@@ -109,9 +109,9 @@
|
||||||
|
<li>Strategy</li>
|
||||||
|
<li>
|
||||||
|
<select id="indexStrategySelect" style="margin-bottom:0">
|
||||||
|
- <option value="JsSearch.AllSubstringsIndexStrategy">All substrings</option>
|
||||||
|
+ <option value="JsSearch.AllSubstringsIndexStrategy" selected>All substrings</option>
|
||||||
|
<option value="JsSearch.ExactWordIndexStrategy">Exact match</option>
|
||||||
|
- <option value="JsSearch.PrefixIndexStrategy" selected>Prefix matching</option>
|
||||||
|
+ <option value="JsSearch.PrefixIndexStrategy">Prefix matching</option>
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
</div>
|
||||||
|
--
|
||||||
|
2.47.0
|
||||||
|
|
|
@ -19,6 +19,7 @@ stdenv.mkDerivation {
|
||||||
./0002-chore-remove-useless-dependencies.patch
|
./0002-chore-remove-useless-dependencies.patch
|
||||||
./0003-feat-separate-HTML-description-of-MD-description.patch
|
./0003-feat-separate-HTML-description-of-MD-description.patch
|
||||||
./0004-fix-indentation-of-ul.patch
|
./0004-fix-indentation-of-ul.patch
|
||||||
|
./0005-feat-match-all-substring-by-default.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
installPhase =
|
installPhase =
|
||||||
|
|
Loading…
Reference in a new issue