tweak: fix search emoji

pull/638/head
ryanzhao 3 years ago
parent c26e6f7e9e
commit 78d8e939f1

@ -152,7 +152,7 @@ class EmojiPickerCollectionView: UICollectionView {
func searchWithText(_ searchText: String?) {
if let searchText = searchText {
emojiSearchResults = allSendableEmoji.filter { emoji in
return emoji.baseEmoji.name.range(of: searchText, options: [.caseInsensitive, .anchored]) != nil
return emoji.baseEmoji.name.range(of: searchText, options: [.caseInsensitive]) != nil
}
} else {
emojiSearchResults = []

Loading…
Cancel
Save