mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-07 07:07:43 +00:00
properly determine length of emojis when deleting
fixes issue described in https://github.com/Helium314/HeliBoard/issues/426#issuecomment-1944132643, but not the initial problem
This commit is contained in:
parent
fe5aa2c33c
commit
4b52f2d51d
5 changed files with 65 additions and 23 deletions
|
@ -191,6 +191,8 @@ public final class Constants {
|
|||
|
||||
public static final String REGEXP_PERIOD = "\\.";
|
||||
public static final String STRING_SPACE = " ";
|
||||
public static final int CODE_ZWNJ = '\u200C';
|
||||
public static final int CODE_ZWJ = '\u200D';
|
||||
|
||||
public static boolean isLetterCode(final int code) {
|
||||
return code >= CODE_SPACE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue