aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Ryu18 <[email protected]>2021-08-16 00:53:58 +0200
committerGravatar Ryu18 <[email protected]>2021-08-16 00:53:58 +0200
commit054d5da2af3e75a8bb29f7088272f8222f2d0b33 (patch)
treeb6f11bcd806cb3a3e7798881b7ab337beec87bf4
parentRemoved comment (diff)
apply changes for review https://github.com/python-discord/bot/pull/1725\#pullrequestreview-730223166
-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 8d7ffec88..045f9e6f9 100644
--- a/bot/exts/info/python_news.py
+++ b/bot/exts/info/python_news.py
@@ -76,7 +76,7 @@ class PythonNews(Cog):
@staticmethod
def escape_markdown(content: str) -> str:
"""Escape the markdown underlines."""
- return re.sub(r'[_\\~|]', lambda match: '\\' + match[0], content, 0, re.MULTILINE)
+ return re.sub(r"[_|]", lambda match: "\\" + match[0], content)
async def post_pep_news(self) -> None:
"""Fetch new PEPs and when they don't have announcement in #python-news, create it."""