diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-04-13 21:37:47 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-04-13 21:37:47 +0200 |
commit | c42d2759f89a39d6caada419653b2b05bf38ef3d (patch) | |
tree | 4924d40f3e1295c53c4d9250859dc722878ed897 /src/main/java | |
parent | 347a623573b75b916d506d82b33bde0d7757ab86 (diff) |
exclude >= from being recognized as quote
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/UIHelper.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/UIHelper.java b/src/main/java/de/pixart/messenger/utils/UIHelper.java index 0f2a33d13..4f2c5a349 100644 --- a/src/main/java/de/pixart/messenger/utils/UIHelper.java +++ b/src/main/java/de/pixart/messenger/utils/UIHelper.java @@ -240,7 +240,8 @@ public class UIHelper { public static boolean isPositionFollowedByQuoteableCharacter(CharSequence body, int pos) { return !isPositionFollowedByNumber(body, pos) - && !isPositionFollowedByEmoticon(body, pos); + && !isPositionFollowedByEmoticon(body, pos) + && !isPositionFollowedByEquals(body, pos); } private static boolean isPositionFollowedByNumber(CharSequence body, int pos) { @@ -258,6 +259,10 @@ public class UIHelper { return previousWasNumber; } + private static boolean isPositionFollowedByEquals(CharSequence body, int pos) { + return body.length() > pos + 1 && body.charAt(pos + 1) == '='; + } + private static boolean isPositionFollowedByEmoticon(CharSequence body, int pos) { if (body.length() <= pos + 1) { return false; |