Compare commits

..

No commits in common. "e42e26ae86962b036c82283bb6e238717bf6d5fb" and "053b835e89ea7148172ee1e04f46164af712fddf" have entirely different histories.

View file

@ -101,7 +101,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();
} }
@ -111,4 +111,4 @@ function processEmoteQuery(query: string[], isFormatted: boolean): string[] {
} }
export const processEmoteQueryArray = (query: string[]): string[] => processEmoteQuery(query, false); export const processEmoteQueryArray = (query: string[]): string[] => processEmoteQuery(query, false);
export const processEmoteQueryFormatted = (query: string[]): string => processEmoteQuery(query, true).join(""); export const processEmoteQueryFormatted = (query: string[]): string => processEmoteQuery(query, true).join("");