spelling: character

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2023-03-21 23:17:02 -04:00
parent 269c602e21
commit 0e2a275cc5
1 changed files with 1 additions and 1 deletions

View File

@ -813,7 +813,7 @@
function returnWord(text, caretPos) {
var index = text.indexOf(caretPos);
var preText = text.substring(0, caretPos);
// If the last charachter is a space or enter remove it
// If the last character is a space or enter remove it
// We need this in friendica for the url preview.
var lastChar = preText.slice(-1)
if ( lastChar === " "