fixed ImStyleParser to not style '**test**'
This commit is contained in:
parent
3efa1c46ab
commit
8e4440a49a
|
@ -86,7 +86,7 @@ public class ImStyleParser {
|
||||||
private static int seekEnd(CharSequence text, char needle, int start, int end) {
|
private static int seekEnd(CharSequence text, char needle, int start, int end) {
|
||||||
for (int i = start; i <= end; ++i) {
|
for (int i = start; i <= end; ++i) {
|
||||||
char c = text.charAt(i);
|
char c = text.charAt(i);
|
||||||
if (c == needle && !precededByWhiteSpace(text,i,start)) {
|
if (c == needle && !Character.isWhitespace(text.charAt(i - 1))) {
|
||||||
return i;
|
return i;
|
||||||
} else if (c == '\n') {
|
} else if (c == '\n') {
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue