aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Ryu18 <[email protected]>2021-08-16 00:56:31 +0200
committerGravatar Ryu18 <[email protected]>2021-08-16 00:56:31 +0200
commitc5d26a9358099660d18f9409e8d5a9c3fe9fd344 (patch)
treef0c74d8302de660f7396f9ab1b4cd628fddfb382
parentapply 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.py2
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: