Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dnsviz/dnsviz.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCasey Deccio <casey@deccio.net>2016-08-25 18:12:36 +0300
committerCasey Deccio <casey@deccio.net>2016-08-25 18:12:36 +0300
commit95eccbdfba0edf648e7756b31be1ee08d9587a79 (patch)
treedaa359180f859d289f05fe03f602cf4af537172a
parent62e940d7c3e6ba93e6bf09d6bdbd6b9fc710969f (diff)
Make coloring pattern more general
-rw-r--r--dnsviz/commands/grok.py2
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)(": ")(.+)(",?)$')