aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-11-21 20:53:05 +0100
committerChristian Schneppe <christian@pix-art.de>2017-11-21 20:53:05 +0100
commit3258c830420f70a727193f7b36c5f952d1eee343 (patch)
tree5a52ce3e0dbf381345b72c824f80734ee72a6f08 /src/main/java
parent6a0a3a444770fe50c594e4e76edf34fb3eb454a3 (diff)
fixed ImStyleParser to not style '**test**'
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/pixart/messenger/utils/ImStyleParser.java2
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;