mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 04:58:32 +02:00
fixup! remove py2 remnants and use mocks in tests
This commit is contained in:
parent
5cee4fb783
commit
d47e1ed479
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue