Strips the given message of all color codes @param input String to strip of color @return A copy of the input string, without any coloring
(final String input)
| 149 | * @return A copy of the input string, without any coloring |
| 150 | */ |
| 151 | public static String stripColor(final String input) { |
| 152 | if (input == null) { |
| 153 | return null; |
| 154 | } |
| 155 | |
| 156 | return STRIP_COLOR_PATTERN.matcher(input).replaceAll(""); |
| 157 | } |
| 158 | |
| 159 | public static String translateAlternateColorCodes(char altColorChar, String textToTranslate) { |
| 160 | char[] b = textToTranslate.toCharArray(); |
no outgoing calls
no test coverage detected