diff options
author | KHobbits <rob@khobbits.co.uk> | 2013-06-11 16:38:24 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-06-11 16:38:24 +0100 |
commit | baa9f0af1fb2511317e15f2ef2d15cce8903dbbb (patch) | |
tree | e5657e50bb30d41e1a79fbcafe06f581062b9041 | |
parent | f2cb9d8ca1e46e37f4a52cb89c50c8b810264969 (diff) | |
download | Essentials-baa9f0af1fb2511317e15f2ef2d15cce8903dbbb.tar Essentials-baa9f0af1fb2511317e15f2ef2d15cce8903dbbb.tar.gz Essentials-baa9f0af1fb2511317e15f2ef2d15cce8903dbbb.tar.lz Essentials-baa9f0af1fb2511317e15f2ef2d15cce8903dbbb.tar.xz Essentials-baa9f0af1fb2511317e15f2ef2d15cce8903dbbb.zip |
Restore support for replacing CAPITAL colour codes.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/utils/FormatUtil.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Essentials/src/com/earth2me/essentials/utils/FormatUtil.java b/Essentials/src/com/earth2me/essentials/utils/FormatUtil.java index f47ff3296..effcf88ce 100644 --- a/Essentials/src/com/earth2me/essentials/utils/FormatUtil.java +++ b/Essentials/src/com/earth2me/essentials/utils/FormatUtil.java @@ -6,12 +6,12 @@ import java.util.regex.Pattern; public class FormatUtil { - static final transient Pattern REPLACE_COLOR_PATTERN = Pattern.compile("&([0-9a-f])"); + static final transient Pattern REPLACE_COLOR_PATTERN = Pattern.compile("&([0-9a-fA-F])"); static final transient Pattern VANILLA_MAGIC_PATTERN = Pattern.compile("\u00a7+[Kk]"); static final transient Pattern VANILLA_FORMAT_PATTERN = Pattern.compile("\u00a7+[L-ORl-or]"); - static final transient Pattern REPLACE_FORMAT_PATTERN = Pattern.compile("&([l-or])"); - static final transient Pattern REPLACE_MAGIC_PATTERN = Pattern.compile("&(k)"); - static final transient Pattern REPLACE_PATTERN = Pattern.compile("&([0-9a-fk-or])"); + static final transient Pattern REPLACE_FORMAT_PATTERN = Pattern.compile("&([l-orL-OR])"); + static final transient Pattern REPLACE_MAGIC_PATTERN = Pattern.compile("&([Kk])"); + static final transient Pattern REPLACE_PATTERN = Pattern.compile("&([0-9a-fk-orA-FK-OR])"); static final transient Pattern LOGCOLOR_PATTERN = Pattern.compile("\\x1B\\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]"); static final transient Pattern VANILLA_PATTERN = Pattern.compile("\u00a7+[0-9A-FK-ORa-fk-or]?"); static final transient Pattern VANILLA_COLOR_PATTERN = Pattern.compile("\u00a7+[0-9A-Fa-f]"); |