From 40a292d05e1fc547183bc7fd5beeb1200cda6e2e Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 27 May 2025 12:21:40 +0200 Subject: [PATCH] Scrolled to bottom fix. --- src/snek/static/chat-input.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/snek/static/chat-input.js b/src/snek/static/chat-input.js index 9239d22..c4aa656 100644 --- a/src/snek/static/chat-input.js +++ b/src/snek/static/chat-input.js @@ -81,7 +81,7 @@ class ChatInputComponent extends HTMLElement { distance += 10 } - console.info([ mention, author, distance ]); + console.warn([ mention, author, distance ]); if (distance < minDistance) { minDistance = distance; closestAuthor = author; @@ -129,11 +129,9 @@ levenshteinDistance(a, b) { const mentions = this.extractMentions(text); const matches = this.matchMentionsToAuthors(mentions, authors); - console.info(matches) let updatedText = text; matches.forEach(({ mention, closestAuthor }) => { const mentionRegex = new RegExp(`@${mention}`, 'g'); - console.info(closestAuthor) updatedText = updatedText.replace(mentionRegex, `@${closestAuthor}`); });