spelling: character
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
269c602e21
commit
0e2a275cc5
1 changed files with 1 additions and 1 deletions
|
@ -813,7 +813,7 @@
|
||||||
function returnWord(text, caretPos) {
|
function returnWord(text, caretPos) {
|
||||||
var index = text.indexOf(caretPos);
|
var index = text.indexOf(caretPos);
|
||||||
var preText = text.substring(0, 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.
|
// We need this in friendica for the url preview.
|
||||||
var lastChar = preText.slice(-1)
|
var lastChar = preText.slice(-1)
|
||||||
if ( lastChar === " "
|
if ( lastChar === " "
|
||||||
|
|
Loading…
Reference in a new issue