Don't include emoji name when searching; only use short_name
This commit is contained in:
@@ -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> {
|
||||||
|
Reference in New Issue
Block a user