diff --git a/src/snek/static/chat-input.js b/src/snek/static/chat-input.js index 1963b36..e32ffeb 100644 --- a/src/snek/static/chat-input.js +++ b/src/snek/static/chat-input.js @@ -76,13 +76,14 @@ class ChatInputComponent extends HTMLElement { const lowerAuthor = author.toLowerCase(); let distance = this.levenshteinDistance(lowerMention, lowerAuthor); if(!this.isSubsequence(lowerMention,lowerAuthor)) { - distance += 1 + distance += 10 } if (distance < minDistance) { minDistance = distance; closestAuthor = author; - console.info({ mention, closestAuthor, distance }); + } + console.info({ mention, closestAuthor, distance }); }); return { mention, closestAuthor, distance: minDistance };