fixup! remove py2 remnants and use mocks in tests

This commit is contained in:
Peter Schmidbauer 2019-11-01 19:58:32 +01:00
parent 5cee4fb783
commit d47e1ed479

View file

@ -224,7 +224,7 @@ class Journal:
raw = raw.replace('\\n ', '\n').replace('\\n', '\n')
starred = False
# Split raw text into title and body
sep = re.search("\n|[\\?!.]+ +\n?", raw)
sep = re.search(r"\n|[?!.]+ +\n?", raw)
first_line = raw[:sep.end()].strip() if sep else raw
starred = False