From 25db20999aea92afdc9dbad725b476137f436779 Mon Sep 17 00:00:00 2001 From: tombii Date: Sat, 27 Feb 2016 12:29:38 +0100 Subject: [PATCH] Update lg.py Changed: SUMMARY_RE_MATCH = r"(?P[\w_] to SUMMARY_RE_MATCH = r"(?P[\w_-] to allow matching of names that contain a hyphen, "-". This will allow names with hypens to show up in the lg and avoid errors like couldn't parse: ASxxx-1 BGP master up 23:20:46 Established --- lg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lg.py b/lg.py index 477e29a..4bf05e8 100644 --- a/lg.py +++ b/lg.py @@ -221,7 +221,7 @@ def whois(): SUMMARY_UNWANTED_PROTOS = ["Kernel", "Static", "Device"] -SUMMARY_RE_MATCH = r"(?P[\w_]+)\s+(?P\w+)\s+(?P\w+)\s+(?P\w+)\s+(?P((|\d\d\d\d-\d\d-\d\d\s)(|\d\d:)\d\d:\d\d|\w\w\w\d\d))($|\s+(?P.*))" +SUMMARY_RE_MATCH = r"(?P[\w_-]+)\s+(?P\w+)\s+(?P
\w+)\s+(?P\w+)\s+(?P((|\d\d\d\d-\d\d-\d\d\s)(|\d\d:)\d\d:\d\d|\w\w\w\d\d))($|\s+(?P.*))" @app.route("/summary/")