add quick shortcut emoji feature and tests
Signed-off-by: macekj <macekj@umich.edu>
This commit is contained in:
parent
8eadf6b183
commit
ba8d02a808
5 changed files with 107 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue