mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-20 15:54:52 +01:00
Typo-Fix (#1962)
This commit is contained in:
parent
5057825586
commit
c2d91c752f
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ def escape_markdown(text, version=1, entity_type=None):
|
||||||
else:
|
else:
|
||||||
escape_chars = '_*\[\]()~`>\#\+\-=|{}\.!'
|
escape_chars = '_*\[\]()~`>\#\+\-=|{}\.!'
|
||||||
else:
|
else:
|
||||||
raise ValueError('Markdown version musst be either 1 or 2!')
|
raise ValueError('Markdown version must be either 1 or 2!')
|
||||||
|
|
||||||
return re.sub(r'([%s])' % escape_chars, r'\\\1', text)
|
return re.sub(r'([%s])' % escape_chars, r'\\\1', text)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue