From b516db669ce53e16c517494c5b402423fa72cd2b Mon Sep 17 00:00:00 2001 From: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Mon, 5 Jul 2021 12:15:28 -0400 Subject: [PATCH] Fix prefixes/suffixes not stripping hex format --- .../src/main/java/com/earth2me/essentials/utils/FormatUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/utils/FormatUtil.java b/Essentials/src/main/java/com/earth2me/essentials/utils/FormatUtil.java index 55731454b..14eaef068 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/utils/FormatUtil.java +++ b/Essentials/src/main/java/com/earth2me/essentials/utils/FormatUtil.java @@ -44,7 +44,7 @@ public final class FormatUtil { if (input == null) { return null; } - return stripColor(input, REPLACE_ALL_PATTERN); + return stripColor(stripColor(input, REPLACE_ALL_PATTERN), REPLACE_ALL_RGB_PATTERN); } public static String stripAnsi(final String input) {