LogRoleReplace filter out ESC characters

This commit is contained in:
Patrik Nordwall 2012-10-12 13:00:16 +02:00
parent b193a45235
commit ef695cbb29

View file

@ -93,7 +93,7 @@ object LogRoleReplace extends ClipboardOwner {
class LogRoleReplace {
private val RoleStarted = """\[([\w\-]+)\].*Role \[([\w]+)\] started with address \[akka://.*@([\w\-\.]+):([0-9]+)\]""".r
private val ColorCode = """\[[0-9]+m"""
private val ColorCode = """\u001B?\[[0-9]+m"""
private var replacements: Map[String, String] = Map.empty