merge: upstream

This commit is contained in:
Marie 2024-01-11 00:57:57 +01:00
commit 4df3145993
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
11 changed files with 1209 additions and 988 deletions

View file

@ -221,6 +221,19 @@ watch(q, () => {
}
}
} else {
if (customEmojisMap.has(newQ)) {
matches.add(customEmojisMap.get(newQ)!);
}
if (matches.size >= max) return matches;
for (const emoji of emojis) {
if (emoji.aliases.some(alias => alias === newQ)) {
matches.add(emoji);
if (matches.size >= max) break;
}
}
if (matches.size >= max) return matches;
for (const emoji of emojis) {
if (emoji.name.startsWith(newQ)) {
matches.add(emoji);