Fix parsing issue

This commit is contained in:
Manuel Ebert 2015-04-05 18:38:30 +02:00
parent 6c18b6f3b4
commit b4e578b63a
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ class Journal(object):
# Initialise our current entry
entries = []
current_entry = None
date_blob_re = re.compile("^\[.+\] ")
date_blob_re = re.compile("^\[[^\\]]+\] ")
for line in journal_txt.splitlines():
line = line.rstrip()
date_blob = date_blob_re.findall(line)