Skip to content

Commit

Permalink
Merge pull request #12 from flbraun/search
Browse files Browse the repository at this point in the history
Always strip whitespace from search term to avoid nonsense behavior
  • Loading branch information
flbraun authored Oct 28, 2023
2 parents 3f6b7e6 + 21b4c5d commit a2e854b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/palette.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a2e854b

Please sign in to comment.