From 8e4440a49ae665219a70c332471d07baf5b2121c Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 14 Nov 2017 17:57:22 +0100 Subject: [PATCH] fixed ImStyleParser to not style '**test**' --- src/main/java/eu/siacs/conversations/utils/ImStyleParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/utils/ImStyleParser.java b/src/main/java/eu/siacs/conversations/utils/ImStyleParser.java index aa1ac2d83..4e438115d 100644 --- a/src/main/java/eu/siacs/conversations/utils/ImStyleParser.java +++ b/src/main/java/eu/siacs/conversations/utils/ImStyleParser.java @@ -86,7 +86,7 @@ public class ImStyleParser { private static int seekEnd(CharSequence text, char needle, int start, int end) { for (int i = start; i <= end; ++i) { char c = text.charAt(i); - if (c == needle && !precededByWhiteSpace(text,i,start)) { + if (c == needle && !Character.isWhitespace(text.charAt(i - 1))) { return i; } else if (c == '\n') { return -1;