From 21b4c5dbfc26b089376a140a9583bddc3d639124 Mon Sep 17 00:00:00 2001 From: flbraun Date: Sat, 28 Oct 2023 20:55:01 +0200 Subject: [PATCH] always strip whitespace from search term before searching to avoid nonsense behavior --- src/renderer/palette.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/palette.js b/src/renderer/palette.js index 6cf3962..3226265 100644 --- a/src/renderer/palette.js +++ b/src/renderer/palette.js @@ -68,7 +68,7 @@ const makePalette = (searchInput, resultlist) => { resultlist.replaceChildren() // prepare search - const term = searchInput.value + const term = searchInput.value.strip() if (term.length === 0) { return // search field was reset; don't bother the search index }