Even better
This commit is contained in:
parent
5d8e380d74
commit
b160cc9789
|
@ -60,7 +60,7 @@ modelEmojis model =
|
|||
Search s ->
|
||||
Emoji.categories
|
||||
|> List.map Emoji.getEmojis
|
||||
|> List.map (List.filter (\x -> String.contains s x.name))
|
||||
|> List.map (List.filter (\x -> String.contains s x.name || List.any (String.contains s) x.tags))
|
||||
|> doubleMap (\x -> ( x, distance s x.name ))
|
||||
|> List.map (List.sortBy Tuple.second)
|
||||
|> mergeBy Tuple.second
|
||||
|
|
Loading…
Reference in New Issue