From dd48e875172c8bc316db8db234a83f275677656a Mon Sep 17 00:00:00 2001 From: Simon Cambier Date: Mon, 20 Feb 2023 18:00:31 +0100 Subject: [PATCH] #195 - Also highlight single emojis --- src/search/omnisearch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search/omnisearch.ts b/src/search/omnisearch.ts index fbe3f0f..963a0b3 100644 --- a/src/search/omnisearch.ts +++ b/src/search/omnisearch.ts @@ -366,7 +366,7 @@ export class Omnisearch { // Tags, starting with # ...tags, - ].filter(w => w.length > 1) + ].filter(w => w.length > 1 || /\p{Emoji}/u.test(w)) // console.log(foundWords) const matches = this.getMatches(