🗃️ Add more ignore in hash

This commit is contained in:
xtaodada 2022-03-20 20:34:51 +08:00
parent aa0d084ea6
commit f5f22816ed
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -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()