Added backslash to the forbidden chars

This commit is contained in:
StNicolay 2022-12-30 13:54:03 +03:00
parent 77be64ed4b
commit 74844da4ae
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import string
from .decrypted_account import DecryptedAccount
FORBIDDEN_CHARS = frozenset("`\n")
FORBIDDEN_CHARS = frozenset("`\n\\")
PUNCTUATION = frozenset(string.punctuation).difference(FORBIDDEN_CHARS)

View File

@ -658,7 +658,7 @@ async def _import3(
async def gen_password(bot: AsyncTeleBot, mes: Message) -> None:
await base_handler(bot, mes)
# Generate 10 passwords and put 'em in the backticks
# Generate 10 passwords and put them in the backticks
passwords = (f"`{generate_password.gen_password()}`" for _ in range(10))
text = (
"Пароли:\n"