From 8ac9fe97cd9841ab05cf3cc97623ea6980cc6819 Mon Sep 17 00:00:00 2001 From: w_xiaolizu Date: Thu, 15 Jun 2023 14:15:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3prompt=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=9D=97=E5=BC=80=E5=A4=B4=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- func_box.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/func_box.py b/func_box.py index 155f8f6..3118745 100644 --- a/func_box.py +++ b/func_box.py @@ -292,10 +292,12 @@ def diff_list(txt='', percent=0.70, switch: list = None, lst: list = None, sp=15 # 判断有没有传需要匹配的字符串,有则筛选、无则全返 if txt == '' and len(key[0]) >= sp: show = key[0][0:sp] + " . . . " + end + show = show.replace('<', '') elif txt == '' and len(key[0]) < sp: show = key[0][0:sp] + show = show.replace('<', '') else: - show = str(key[0][start:index + sp]).replace(txt, html_tag_color(txt)) + show = str(key[0][start:index + sp]).replace('<', '').replace(txt, html_tag_color(txt)) show += f" {html_tag_color(' X ' + str(key[1]))}" if lst.get(key[0]): be_value = lst[key[0]]