diff --git a/lg.py b/lg.py index c4dd040..16266b6 100755 --- a/lg.py +++ b/lg.py @@ -38,7 +38,7 @@ def add_links(text): line = re.sub(r'AS(\d+)', r'AS\1',line) line = re.sub(r'(\d+\.\d+\.\d+\.\d+)', r'\1',line) hosts = "/".join(request.path.split("/")[2:]) - line = re.sub(r'\[(\w+)\s+((|\d\d\d\d-\d\d-\d\d\s)(|\d\d:)\d\d:\d\d|\w\w\w\d\d)\]', r'[\1 \2]' % hosts, line) + line = re.sub(r'\[(\w+)\s+((|\d\d\d\d-\d\d-\d\d\s)(|\d\d:)\d\d:\d\d|\w\w\w\d\d)', r'[\1 \2' % hosts, line) ret_text.append(line) return "\n".join(ret_text)