diff --git a/src/misc.py b/src/misc.py index 171b3c9..0b8ad46 100644 --- a/src/misc.py +++ b/src/misc.py @@ -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: