mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复高级分段空格分段错误 (#688)
This commit is contained in:
parent
3a7a5ac50a
commit
78294fc641
|
|
@ -790,7 +790,7 @@ class DocumentSerializers(ApiMixin, serializers.Serializer):
|
|||
{'key': '#####', 'value': "(?<=\\n)(?<!#)##### (?!#).*|(?<=^)(?<!#)##### (?!#).*"},
|
||||
{'key': '######', 'value': "(?<=\\n)(?<!#)###### (?!#).*|(?<=^)(?<!#)###### (?!#).*"},
|
||||
{'key': '-', 'value': '(?<! )- .*'},
|
||||
{'key': '空格', 'value': '(?<!\\s)\\s(?!\\s)'},
|
||||
{'key': '空格', 'value': '(?<! ) (?! )'},
|
||||
{'key': '分号', 'value': '(?<!;);(?!;)'}, {'key': '逗号', 'value': '(?<!,),(?!,)'},
|
||||
{'key': '句号', 'value': '(?<!。)。(?!。)'}, {'key': '回车', 'value': '(?<!\\n)\\n(?!\\n)'},
|
||||
{'key': '空行', 'value': '(?<!\\n)\\n\\n(?!\\n)'}]
|
||||
|
|
|
|||
Loading…
Reference in New Issue