From ed7ddfbc59bba45fbce05a00ae92e639738a720d Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Wed, 29 May 2024 12:00:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=86=E6=AE=B5?= =?UTF-8?q?=E8=B6=85=E8=BF=87=E5=88=86=E6=AE=B5=E9=95=BF=E5=BA=A6=E9=99=90?= =?UTF-8?q?=E5=88=B6=20(#577)?= 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 19b265fc6..10e827c30 100644 --- a/apps/common/util/split_model.py +++ b/apps/common/util/split_model.py @@ -163,7 +163,7 @@ def parse_level(text, pattern: str): :param pattern: 正则 :return: 符合正则的文本 """ - level_content_list = list(map(to_tree_obj, re_findall(pattern, text))) + level_content_list = list(map(to_tree_obj, [r[0:255] for r in re_findall(pattern, text) if r is not None])) return list(map(filter_special_symbol, level_content_list))