From 00f2a8bbd43bcedb5abb3547051ad164fdbe7905 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Tue, 2 Jul 2024 11:32:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E3=80=90=E7=9F=A5?= =?UTF-8?q?=E8=AF=86=E5=BA=93=E3=80=91=E9=AB=98=E7=BA=A7=E5=88=86=E6=AE=B5?= =?UTF-8?q?=20=E8=87=AA=E5=8A=A8=E6=B8=85=E6=B4=97=EF=BC=8C=E6=8A=8A?= =?UTF-8?q?=E6=89=80=E6=9C=89=E6=8D=A2=E8=A1=8C=E8=A2=AB=E5=8E=BB=E9=99=A4?= =?UTF-8?q?=20(#684)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/util/split_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/util/split_model.py b/apps/common/util/split_model.py index 6b8fd3695..da7a8976a 100644 --- a/apps/common/util/split_model.py +++ b/apps/common/util/split_model.py @@ -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+"): '' }