aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/eu/siacs/conversations/utils/ImStyleParser.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/ImStyleParser.java b/src/main/java/eu/siacs/conversations/utils/ImStyleParser.java
index 7521b0e..c6982db 100644
--- a/src/main/java/eu/siacs/conversations/utils/ImStyleParser.java
+++ b/src/main/java/eu/siacs/conversations/utils/ImStyleParser.java
@@ -72,7 +72,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) {