diff options
author | Casey Deccio <casey@deccio.net> | 2016-08-25 18:12:36 +0300 |
---|---|---|
committer | Casey Deccio <casey@deccio.net> | 2016-08-25 18:12:36 +0300 |
commit | 95eccbdfba0edf648e7756b31be1ee08d9587a79 (patch) | |
tree | daa359180f859d289f05fe03f602cf4af537172a | |
parent | 62e940d7c3e6ba93e6bf09d6bdbd6b9fc710969f (diff) |
Make coloring pattern more general
-rw-r--r-- | dnsviz/commands/grok.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dnsviz/commands/grok.py b/dnsviz/commands/grok.py index 137a456..ce5af5d 100644 --- a/dnsviz/commands/grok.py +++ b/dnsviz/commands/grok.py @@ -80,7 +80,7 @@ TERM_COLOR_MAP = { 'WARNING': '\033[33m', } -KEY_RE = re.compile(r'^((?P<indent>\s+)")(.+)(": [\[{"\d])') +KEY_RE = re.compile(r'^((?P<indent>\s+)")(.+)(": )') ERRORS_RE = re.compile(r'^((?P<indent>\s+)")((?P<level>warning|error)s?)(": \[)$') ERRORS_CLOSE_RE = re.compile(r'^(?P<indent>\s+)],?$') DESCRIPTION_CODE_RE = re.compile(r'^((?P<indent>\s+)")(?P<name>description|code)(": ")(.+)(",?)$') |