X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/7b8d8e8f4b57bd51fd6d0f0d926b821f06b0e1f0..59948b44c0fe2165b90e3aa0d18646f6c3d74af3:/whatsapp_find.go?ds=sidebyside diff --git a/whatsapp_find.go b/whatsapp_find.go index b825a3e..9e3cbf8 100644 --- a/whatsapp_find.go +++ b/whatsapp_find.go @@ -112,8 +112,8 @@ func whatsappFold(text string) string { return strings.ToLower(strings.TrimSpace(folded)) } -// whatsappFindAnswer returns the answer of whatsappFind for name with matches. Without -// groups, the answer says that it has no groups. +// whatsappFindAnswer returns the answer of whatsappFind for name with matches. +// Without groups, the answer says that it has no groups. func whatsappFindAnswer(name string, matches []WhatsAppMatch, groups bool) string { slices.SortFunc(matches, func(a, b WhatsAppMatch) int { return cmp.Or(strings.Compare(whatsappFold(a.name), whatsappFold(b.name)), strings.Compare(a.id, b.id))