add quick shortcut emoji feature and tests

Signed-off-by: macekj <macekj@umich.edu>
This commit is contained in:
macekj 2020-11-17 17:36:58 -05:00
parent 8eadf6b183
commit ba8d02a808
5 changed files with 107 additions and 6 deletions

View file

@ -190,7 +190,9 @@ abstract class PlainBasePart extends BasePart {
return true;
}
// only split if the previous character is a space
return this._text[offset - 1] !== " ";
// or if it is a + and this is a :
return this._text[offset - 1] !== " " &&
(this._text[offset - 1] !== "+" || chr !== ":");
}
return true;
}