fixed ImStyleParser to not style '**test**'

Daniel Gultsch created

Change summary

src/main/java/eu/siacs/conversations/utils/ImStyleParser.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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;