From 1269404b3f3c6bde4067ae4f9e76241c28488118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E5=8D=9A?= Date: Mon, 17 Feb 2025 20:12:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=A4=A7=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E4=B8=AD=E7=9A=84=E7=89=B9=E6=AE=8A=E5=AD=97?= =?UTF-8?q?=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/utils/util.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/utils/util.py b/core/utils/util.py index 602e04040..490981284 100644 --- a/core/utils/util.py +++ b/core/utils/util.py @@ -67,8 +67,6 @@ def remove_special_symbols(text): """ 去除大模型输出内容中的特殊字符 """ # 用正则匹配所有非字母、非数字、非空白字符 cleaned = re.sub(r'[^\w\s]', '', text, flags=re.UNICODE) - # 去除下划线(如果不希望保留) - cleaned = cleaned.replace('_', '') return cleaned def get_string_no_punctuation_or_emoji(s):