diff options
| author | 2021-08-16 00:56:31 +0200 | |
|---|---|---|
| committer | 2021-08-16 00:56:31 +0200 | |
| commit | c5d26a9358099660d18f9409e8d5a9c3fe9fd344 (patch) | |
| tree | f0c74d8302de660f7396f9ab1b4cd628fddfb382 | |
| parent | apply changes for review https://github.com/python-discord/bot/pull/1725\#pul... (diff) | |
change docstring in escape markdown to reflect actual behavior
| -rw-r--r-- | bot/exts/info/python_news.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/info/python_news.py b/bot/exts/info/python_news.py index 045f9e6f9..63eb4ac17 100644 --- a/bot/exts/info/python_news.py +++ b/bot/exts/info/python_news.py @@ -75,7 +75,7 @@ class PythonNews(Cog): @staticmethod def escape_markdown(content: str) -> str: - """Escape the markdown underlines.""" + """Escape the markdown underlines and spoilers.""" return re.sub(r"[_|]", lambda match: "\\" + match[0], content) async def post_pep_news(self) -> None: |