escape updated Discord markdown

This commit is contained in:
MarkusRost 2023-04-18 22:32:28 +00:00
parent cb79483dc6
commit 2cd9ea58c6

View file

@ -78,7 +78,7 @@ def link_formatter(link: str) -> str:
def escape_formatting(data: str) -> str:
"""Escape Discord formatting"""
return re.sub(r"([`_*~:<>{}@/|\\\[\]\(\)])", "\\\\\\1", data, 0) if data is not None else ""
return re.sub(r"([`_*~:<>{}@/|#\-\.\\\[\]\(\)])", "\\\\\\1", data, 0) if data is not None else ""
def create_article_path(article: str, WIKI_ARTICLE_PATH: str) -> str: