mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
exclude >= from being recognized as quote
This commit is contained in:
parent
56f202d4b8
commit
cc1aa9e431
@ -231,7 +231,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) {
|
||||
@ -249,6 +250,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;
|
||||
|
Loading…
Reference in New Issue
Block a user