🗃️ Add more ignore in hash
This commit is contained in:
parent
aa0d084ea6
commit
f5f22816ed
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user