diff options
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/UIHelper.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/UIHelper.java b/src/main/java/de/pixart/messenger/utils/UIHelper.java index 9e0a571b0..a5c0aa317 100644 --- a/src/main/java/de/pixart/messenger/utils/UIHelper.java +++ b/src/main/java/de/pixart/messenger/utils/UIHelper.java @@ -317,16 +317,16 @@ public class UIHelper { final char first = body.charAt(pos + 1); return first == ';' || first == ':' - || smallerThanBeforeWhitespace(body, pos + 1); + || closingBeforeWhitespace(body, pos + 1); } } - private static boolean smallerThanBeforeWhitespace(CharSequence body, int pos) { + private static boolean closingBeforeWhitespace(CharSequence body, int pos) { for (int i = pos; i < body.length(); ++i) { final char c = body.charAt(i); if (Character.isWhitespace(c)) { return false; - } else if (c == '<') { + } else if (c == '<' || c == '>') { return body.length() == i + 1 || Character.isWhitespace(body.charAt(i + 1)); } } |