Skip to content

Commit

Permalink
Be less fuzzy in searches.
Browse files Browse the repository at this point in the history
  • Loading branch information
patcon committed Dec 5, 2024
1 parent 1c69dba commit 899990b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function handleSearch (searchValue) {
// TODO: Fix this so it works with multiple words.
// E.g., "test finland" filters differently than "finland test"
if (!searchValue.endsWith('*')) {
searchValue = `${searchValue} *${searchValue}*`
searchValue = `${searchValue} ${searchValue}*`
}

try {
Expand Down

0 comments on commit 899990b

Please sign in to comment.