avoid NegativeArraySizeException if input string is "\\#FFF#"
This commit is contained in:
parent
32e8b68ea0
commit
dd0c169d62
@ -77,7 +77,7 @@ class ColorTags {
|
|||||||
}
|
}
|
||||||
Matcher m = colorPattern.matcher(charSeq);
|
Matcher m = colorPattern.matcher(charSeq);
|
||||||
if (m.find()) {
|
if (m.find()) {
|
||||||
StringBuilder builder = new StringBuilder(charSeq.length()-7);
|
StringBuilder builder = new StringBuilder();
|
||||||
int startIndex = 0;
|
int startIndex = 0;
|
||||||
do {
|
do {
|
||||||
String colorStr = null;
|
String colorStr = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user