improve performance
This commit is contained in:
parent
2ef2be8494
commit
abd777f9ff
|
@ -221,11 +221,8 @@ watch(q, () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (const emoji of emojis) {
|
if (customEmojisMap.has(newQ)) {
|
||||||
if (emoji.name === newQ) {
|
matches.add(customEmojisMap.get(newQ)!);
|
||||||
matches.add(emoji);
|
|
||||||
if (matches.size >= max) break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (matches.size >= max) return matches;
|
if (matches.size >= max) return matches;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue