mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 21:46:13 +02:00
Small update to parsing regex
This commit is contained in:
parent
0a2dc73716
commit
e649711ca4
3 changed files with 3 additions and 2 deletions
|
@ -280,7 +280,7 @@ class Journal(object):
|
|||
raw = raw.replace('\\n ', '\n').replace('\\n', '\n')
|
||||
starred = False
|
||||
# Split raw text into title and body
|
||||
sep = re.search("\n|[\?!.]+ *", raw)
|
||||
sep = re.search("\n|[\?!.]+ *\n?", raw)
|
||||
title, body = (raw[:sep.end()], raw[sep.end():]) if sep else (raw, "")
|
||||
starred = False
|
||||
if not date:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue