File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/main/java/cz/foresttech/api Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ public class ColorAPI {
1717 private static final Pattern patternNormal = Pattern .compile ("\\ {#([0-9A-Fa-f]{6})\\ }" );
1818 private static final Pattern patternGrad = Pattern .compile ("\\ {#([0-9A-Fa-f]{6})>\\ }(.*?)\\ {#([0-9A-Fa-f]{6})<\\ }" );
1919 private static final Pattern patternOneFromTwo = Pattern .compile ("\\ {#([0-9A-Fa-f]{6})<>\\ }" );
20- private static Matcher matcher ;
2120
2221 /**
2322 * Here we can select the type of colorize,
@@ -130,9 +129,9 @@ public static String colorizeClassic(String input) {
130129 * @return colored output with gradient
131130 */
132131 public static String colorizeGradient (String input ) {
133- matcher = patternOneFromTwo .matcher (input );
132+ Matcher matcher = patternOneFromTwo .matcher (input );
134133
135- StringBuffer output = new StringBuffer ();
134+ StringBuilder output = new StringBuilder ();
136135
137136 while (matcher .find ()) {
138137 String text = matcher .group (1 );
You can’t perform that action at this time.
0 commit comments