diff --git a/ui/app/src/Views/GroupBar/Match.elm b/ui/app/src/Views/GroupBar/Match.elm index c2dedbe4..96295362 100644 --- a/ui/app/src/Views/GroupBar/Match.elm +++ b/ui/app/src/Views/GroupBar/Match.elm @@ -35,8 +35,7 @@ jaro s1 s2 = m = zip (List.range 1 l1) (String.toList s1) |> List.map (Tuple.mapSecond Char.toCode) - |> List.map (charMatch searchLength z2) - |> List.foldl (++) [] + |> List.concatMap (charMatch searchLength z2) ml = List.length m