From 3258c830420f70a727193f7b36c5f952d1eee343 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Tue, 21 Nov 2017 20:53:05 +0100 Subject: fixed ImStyleParser to not style '**test**' --- src/main/java/de/pixart/messenger/utils/ImStyleParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/de/pixart/messenger/utils/ImStyleParser.java b/src/main/java/de/pixart/messenger/utils/ImStyleParser.java index 1fc9452f2..6f65b1552 100644 --- a/src/main/java/de/pixart/messenger/utils/ImStyleParser.java +++ b/src/main/java/de/pixart/messenger/utils/ImStyleParser.java @@ -85,7 +85,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; -- cgit v1.2.3