diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-11-21 20:53:05 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-11-21 20:53:05 +0100 |
commit | 3258c830420f70a727193f7b36c5f952d1eee343 (patch) | |
tree | 5a52ce3e0dbf381345b72c824f80734ee72a6f08 /src/main/java | |
parent | 6a0a3a444770fe50c594e4e76edf34fb3eb454a3 (diff) |
fixed ImStyleParser to not style '**test**'
Diffstat (limited to 'src/main/java')
-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 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; |