mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-07-16 23:01:50 +08:00
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
@ -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…
x
Reference in New Issue
Block a user