Scrolled to bottom fix.
This commit is contained in:
parent
4f777f0003
commit
46052172b2
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user