Skip to content

Commit

Permalink
Filters: (hopefully) imporove fuzzy matching of file/path/tag filters
Browse files Browse the repository at this point in the history
  • Loading branch information
roovo committed Oct 28, 2022
1 parent 6342faf commit 88bc54b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Page/Helper/MultiSelect.elm
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ fuzzyMatch needle selectionItems =
let
result : Fuzzy.Result
result =
Fuzzy.match [] [] (String.toLower needle) (String.toLower selectionItem.label)
Fuzzy.match [ Fuzzy.addPenalty 10, Fuzzy.removePenalty 100 ] [ "/", " ", "\\" ] (String.toLower needle) (String.toLower selectionItem.label)
in
if String.isEmpty needle then
Just ( 0, selectionItem )
Expand Down

0 comments on commit 88bc54b

Please sign in to comment.