mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-28 14:52:58 +00:00
fix: 【分段】单个#无法分段
This commit is contained in:
parent
2f310d8f2f
commit
b93c406b19
|
|
@ -476,7 +476,7 @@ class DocumentSerializers(ApiMixin, serializers.Serializer):
|
|||
class SplitPattern(ApiMixin, serializers.Serializer):
|
||||
@staticmethod
|
||||
def list():
|
||||
return [{'key': "#", 'value': '^# .*'}, {'key': '##', 'value': '(?<!#)## (?!#).*'},
|
||||
return [{'key': "#", 'value': '# .*'}, {'key': '##', 'value': '(?<!#)## (?!#).*'},
|
||||
{'key': '###', 'value': "(?<!#)### (?!#).*"}, {'key': '####', 'value': "(?<!#)####(?!#).*"},
|
||||
{'key': '#####', 'value': "(?<!#)#####(?!#).*"}, {'key': '######', 'value': "(?<!#)######(?!#).*"},
|
||||
{'key': '-', 'value': '(?<! )- .*'},
|
||||
|
|
|
|||
Loading…
Reference in New Issue