From d47e1ed4799139ccc44c8dc6d1ffd95964ee9fab Mon Sep 17 00:00:00 2001 From: Peter Schmidbauer Date: Fri, 1 Nov 2019 19:58:32 +0100 Subject: [PATCH] fixup! remove py2 remnants and use mocks in tests --- jrnl/Journal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jrnl/Journal.py b/jrnl/Journal.py index e5f87e03..9ecc2515 100644 --- a/jrnl/Journal.py +++ b/jrnl/Journal.py @@ -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