fix: 修复【知识库】高级分段 自动清洗,把所有换行被去除 (#684)

This commit is contained in:
shaohuzhang1 2024-07-02 11:32:20 +08:00 committed by GitHub
parent 6c67b65e6a
commit 00f2a8bbd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -257,7 +257,7 @@ def post_handler_paragraph(content: str, limit: int, with_filter: bool):
replace_map = {
re.compile('\n+'): '\n',
re.compile('\\s+'): ' ',
re.compile(' +'): ' ',
re.compile('#+'): "",
re.compile("\t+"): ''
}