Skip to content

Commit

Permalink
Add Ellipsis to SENTENCE_SPLITTER (#1044)
Browse files Browse the repository at this point in the history
Ellipsis is used to terminal sentences in Chinese and used a lot at end of title.
  • Loading branch information
felixonmars authored Sep 11, 2020
1 parent f4cf888 commit 23bd6b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jrnl/Entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def __ne__(self, other):
SENTENCE_SPLITTER = re.compile(
r"""
( # A sentence ends at one of two sequences:
[.!?\u203C\u203D\u2047\u2048\u2049\u3002\uFE52\uFE57\uFF01\uFF0E\uFF1F\uFF61] # Either, a sequence starting with a sentence terminal,
[.!?\u2026\u203C\u203D\u2047\u2048\u2049\u22EF\u3002\uFE52\uFE57\uFF01\uFF0E\uFF1F\uFF61] # Either, a sequence starting with a sentence terminal,
[\'\u2019\"\u201D]? # an optional right quote,
[\]\)]* # optional closing brackets and
\s+ # a sequence of required spaces.
Expand Down

0 comments on commit 23bd6b8

Please sign in to comment.