[SPIGOT-5843] Bukkit ChatColor does not strip hex color codes Created: 26/Jun/20  Updated: 26/Jun/20  Resolved: 26/Jun/20

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: JRoy Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 1
Labels: 1.16.1
Environment:

N/A but Windows 10 & latest Java 8


Version: Built from 4ff609e60c191f107682681b5e3a8262f8a4c844
Guidelines Read: Yes

 Description   

ChatColor#stripColor does not properly strip hex color codes (in the §x format) from the input stream correctly. 

I assume this is due to not all characters that can be used in a hex color code matching in the STRIP_COLOR_PATTERN



 Comments   
Comment by md_5 [ 26/Jun/20 ]

System.out.println(ChatColor.stripColor("§x§0§0§0§0§0§0Test"));

— exec-maven-plugin:1.5.0:exec (default-cli) @ bukkit —
Test

Generated at Fri Apr 11 15:29:54 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.