From f5f22816edd12294b11a27e38f53974ca5718779 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 20 Mar 2022 20:34:51 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Add=20more=20ignore=20i?= =?UTF-8?q?n=20hash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- defs/msg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/defs/msg.py b/defs/msg.py index 1a09355..bca2d8b 100644 --- a/defs/msg.py +++ b/defs/msg.py @@ -38,9 +38,9 @@ def gen_button(data: Module) -> InlineKeyboardMarkup: def format_text(text: str) -> str: text = text.strip() - for i in ["/", " ", "-", "@", ]: + for i in ["/", " ", "-", "@", "(", ]: text = text.replace(i, "_") - for i in ["【", "】", "[", "]"]: + for i in ["【", "】", "[", "]", "!", "(", ")", "`", "!", ]: text = text.replace(i, "") return text.strip()