From 3f093fec4ac8e95a0d600599edf16d5e823a0eb2 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 26 Oct 2011 07:01:50 +0100 Subject: [PATCH] Fixed stripColor taking more than it should, thanks to fieldmaster for catching it By: Nathan Adams --- paper-api/src/main/java/org/bukkit/ChatColor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/ChatColor.java b/paper-api/src/main/java/org/bukkit/ChatColor.java index 834bcc68ad..06540b2cac 100644 --- a/paper-api/src/main/java/org/bukkit/ChatColor.java +++ b/paper-api/src/main/java/org/bukkit/ChatColor.java @@ -115,7 +115,7 @@ public enum ChatColor { return null; } - return input.replaceAll("(?i)\u00A7[0-F]", ""); + return input.replaceAll("(?i)\u00A7[0-9A-F]", ""); } static {