Compare commits

..

No commits in common. "dd6f04fb25b94cad580c145f698cbc8caee12663" and "1dc63ef188e2551c7991148e93ddb7400ff92308" have entirely different histories.

View file

@ -97,7 +97,7 @@ function processEmoteQuery(query: string[], isFormatted: boolean): string[] {
// Find all similar emote candidates within certian threshold and select Nth top one according to the selector. // Find all similar emote candidates within certian threshold and select Nth top one according to the selector.
const similarEmotes = searchSimilarEmotes(emote); const similarEmotes = searchSimilarEmotes(emote);
if (similarEmotes.length > 0) { if (similarEmotes.length > 0) {
selector = Math.min(selector, similarEmotes.length - 1); selector = Math.min(selector, similarEmotes.length);
return similarEmotes[selector].toString(); return similarEmotes[selector].toString();
} }