]> git.mxchange.org Git - friendica.git/commitdiff
spelling: character
authorJosh Soref <2119212+jsoref@users.noreply.github.com>
Wed, 22 Mar 2023 03:17:02 +0000 (23:17 -0400)
committerJosh Soref <2119212+jsoref@users.noreply.github.com>
Sun, 26 Mar 2023 20:03:22 +0000 (16:03 -0400)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
view/js/linkPreview.js

index 3b6b9eae5661b6ad7eafb62d74f64f46e67300ef..dddf9046127ee2ab2a8784f76be27361209f46d9 100644 (file)
        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 === " "