diff --git a/minecraft/text/colour.go b/minecraft/text/colour.go index 033546b6..cfdc1754 100644 --- a/minecraft/text/colour.go +++ b/minecraft/text/colour.go @@ -8,7 +8,7 @@ import ( ) // cleaner represents the regex used to clean Minecraft formatting codes from a string. -var cleaner = regexp.MustCompile("§[0-9a-u]") +var cleaner = regexp.MustCompile("§[0-9a-v]") // Clean removes all Minecraft formatting codes from the string passed. func Clean(s string) string { diff --git a/minecraft/text/map.go b/minecraft/text/map.go index 3e0cce84..bd7cdb1b 100644 --- a/minecraft/text/map.go +++ b/minecraft/text/map.go @@ -34,6 +34,7 @@ const ( Diamond = "§s" Lapis = "§t" Amethyst = "§u" + Resin = "§v" ) const ( @@ -64,6 +65,7 @@ const ( ansiDiamond = "\x1b[38;5;122m" ansiLapis = "\x1b[38;5;4m" ansiAmethyst = "\x1b[38;5;171m" + ansiResin = "\x1b[38;5;172m" ansiObfuscated = "" ansiBold = "\x1b[1m" @@ -99,6 +101,7 @@ var m = map[string]string{ Diamond: ansiDiamond, Lapis: ansiLapis, Amethyst: ansiAmethyst, + Resin: ansiResin, Obfuscated: ansiObfuscated, Bold: ansiBold, @@ -139,6 +142,7 @@ var strMap = map[string]string{ "diamond": Diamond, "lapis": Lapis, "amethyst": Amethyst, + "resin": Resin, } // minecraftReplacer and ansiReplacer are used to translate ANSI formatting codes to Minecraft formatting