Don't include emoji name when searching; only use short_name
This commit is contained in:
parent
46baf2a69b
commit
6936cc1e2e
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ const fuse = new Fuse(data, {
|
||||||
shouldSort: true,
|
shouldSort: true,
|
||||||
threshold: 0.2,
|
threshold: 0.2,
|
||||||
minMatchCharLength: 1,
|
minMatchCharLength: 1,
|
||||||
keys: ['short_name', 'name'],
|
keys: ['short_name'],
|
||||||
});
|
});
|
||||||
|
|
||||||
export function search(query: string, count = 0): Array<EmojiData> {
|
export function search(query: string, count = 0): Array<EmojiData> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue