diff --git a/src/snek/static/chat-input.js b/src/snek/static/chat-input.js index d91b51d..2d84658 100644 --- a/src/snek/static/chat-input.js +++ b/src/snek/static/chat-input.js @@ -75,7 +75,7 @@ class ChatInputComponent extends HTMLElement { authors.forEach(author => { const lowerAuthor = author.toLowerCase(); const distance = this.levenshteinDistance(lowerMention, lowerAuthor); - if(!this.isSubSequence(lowerMention,lowerAuthor)) { + if(!this.isSubsequence(lowerMention,lowerAuthor)) { distance += 1 } if (distance < minDistance) {