diff options
Diffstat (limited to 'src/main/java/de/pixart')
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/ImStyleParser.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/ImStyleParser.java b/src/main/java/de/pixart/messenger/utils/ImStyleParser.java index 46f8cec10..9f008d76c 100644 --- a/src/main/java/de/pixart/messenger/utils/ImStyleParser.java +++ b/src/main/java/de/pixart/messenger/utils/ImStyleParser.java @@ -71,7 +71,7 @@ public class ImStyleParser { } private static boolean isCharRepeatedTwoTimes(CharSequence text, char c, int index, int end) { - return index + 1 <= end && text.charAt(index) == c && text.charAt(index) == c; + return index + 1 <= end && text.charAt(index) == c && text.charAt(index + 1) == c; } private static boolean precededByWhiteSpace(CharSequence text, int index, int start) { |