Don't include emoji name when searching; only use short_name

This commit is contained in:
Scott Nonnenberg 2022-09-19 09:34:20 -07:00 committed by GitHub
parent 46baf2a69b
commit 6936cc1e2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -222,7 +222,7 @@ const fuse = new Fuse(data, {
shouldSort: true,
threshold: 0.2,
minMatchCharLength: 1,
keys: ['short_name', 'name'],
keys: ['short_name'],
});
export function search(query: string, count = 0): Array<EmojiData> {