fix bug of regx (#1703)
### What problem does this PR solve? #1689 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
d38f995ba6
commit
c92d334b29
1 changed files with 1 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ def make_colon_as_title(sections):
|
|||
if txt[-1] not in "::":
|
||||
continue
|
||||
txt = txt[::-1]
|
||||
arr = re.split(r"([。?!!?;;]| .)", txt)
|
||||
arr = re.split(r"([。?!!?;;]| \.)", txt)
|
||||
if len(arr) < 2 or len(arr[1]) < 32:
|
||||
continue
|
||||
sections.insert(i - 1, (arr[0][::-1], "title"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue