diff options
author | James Clarke <jamesrtclarke@me.com> | 2013-01-26 10:39:45 +0000 |
---|---|---|
committer | GJ <gjmcferrin@gmail.com> | 2013-03-23 00:26:22 -0400 |
commit | 3ad423af07ae1e9532c0d1bffeb12937d31c019f (patch) | |
tree | 72520cb8edb06445c54e991c9398c6c34a9fa6ee /src/main/java/net/minecraft/server/ConsoleLogFormatter.java | |
parent | 444ced306aec533bcc242ab0ba2bcded022da5f3 (diff) | |
download | craftbukkit-3ad423af07ae1e9532c0d1bffeb12937d31c019f.tar craftbukkit-3ad423af07ae1e9532c0d1bffeb12937d31c019f.tar.gz craftbukkit-3ad423af07ae1e9532c0d1bffeb12937d31c019f.tar.lz craftbukkit-3ad423af07ae1e9532c0d1bffeb12937d31c019f.tar.xz craftbukkit-3ad423af07ae1e9532c0d1bffeb12937d31c019f.zip |
ANSI color codes now reset text attributes. Fixes BUKKIT-3508
The client resets all formatting after a color code is received, but currently the ANSI codes do not, and so the console does not accurately reflect the appearance of the formatted text. Instead, the ANSI color codes are now set to reset all text attributes.
Diffstat (limited to 'src/main/java/net/minecraft/server/ConsoleLogFormatter.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ConsoleLogFormatter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/ConsoleLogFormatter.java b/src/main/java/net/minecraft/server/ConsoleLogFormatter.java index 60d26d58..86bb2107 100644 --- a/src/main/java/net/minecraft/server/ConsoleLogFormatter.java +++ b/src/main/java/net/minecraft/server/ConsoleLogFormatter.java @@ -15,7 +15,7 @@ class ConsoleLogFormatter extends Formatter { final ConsoleLogManager a; // CraftBukkit start - add color stripping - private Pattern pattern = Pattern.compile("\\x1B\\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]"); + private Pattern pattern = Pattern.compile("\\x1B\\[([0-9]{1,2}(;[0-9]{1,2})*)?[m|K]"); private boolean strip = false; // CraftBukkit end |