Strip colors from chat, if the user does not have the permission.

This commit is contained in:
snowleo 2012-01-16 20:29:55 +01:00
parent 0fb07d4cc1
commit 26d63f3666
2 changed files with 4 additions and 1 deletions

View file

@ -478,7 +478,7 @@ public class Util
}
return buf.toString();
}
private static transient final Pattern COLOR_PATTERN = Pattern.compile("(?i)\u00A7[0-9A-F]");
private static transient final Pattern COLOR_PATTERN = Pattern.compile("\u00A7+[0-9A-FKa-fk]");
public static String stripColor(final String input)
{