tweak: fix search emoji

This commit is contained in:
ryanzhao 2022-08-17 15:08:49 +10:00
parent c26e6f7e9e
commit 78d8e939f1
1 changed files with 1 additions and 1 deletions

View File

@ -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 = []