From 6936cc1e2e60da55297130b6e8fb62da45248ed7 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Mon, 19 Sep 2022 09:34:20 -0700 Subject: [PATCH] Don't include emoji name when searching; only use short_name --- ts/components/emoji/lib.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/components/emoji/lib.ts b/ts/components/emoji/lib.ts index 800d06cbd..4b47f1ef9 100644 --- a/ts/components/emoji/lib.ts +++ b/ts/components/emoji/lib.ts @@ -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 {