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
Block a user