fixed Add Word picking up two words, when they are separated only with a new line
This commit is contained in:
parent
0421578517
commit
74909aeb7e
1 changed files with 2 additions and 2 deletions
|
|
@ -14,8 +14,8 @@ import io.github.sspanak.tt9.ime.modes.InputMode;
|
|||
|
||||
|
||||
public class InputFieldHelper {
|
||||
private static final Pattern beforeCursorWordRegex = Pattern.compile("(\\w+)$");
|
||||
private static final Pattern afterCursorWordRegex = Pattern.compile("^(\\w+)");
|
||||
private static final Pattern beforeCursorWordRegex = Pattern.compile("(\\w+)(?!\n)$");
|
||||
private static final Pattern afterCursorWordRegex = Pattern.compile("^(?<!\n)(\\w+)");
|
||||
|
||||
|
||||
public static boolean isThereText(InputConnection currentInputConnection) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue