From 177bd7f84ee1c04bf73ff9d4dc51f3a9e478af9d Mon Sep 17 00:00:00 2001 From: benno1237 <35632314+benno1237@users.noreply.github.com> Date: Thu, 27 May 2021 17:44:22 +0200 Subject: [PATCH] Update Dev's code block regex to support `python` language (#5083) * Update dev_commands.py * Update dev_commands.py * Update redbot/core/dev_commands.py regexes keep confusing me. thanks jack Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com> Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com> --- redbot/core/dev_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/core/dev_commands.py b/redbot/core/dev_commands.py index 47a478c30..25ad62dff 100644 --- a/redbot/core/dev_commands.py +++ b/redbot/core/dev_commands.py @@ -28,7 +28,7 @@ https://github.com/Rapptz/RoboDanny/blob/master/cogs/repl.py _ = Translator("Dev", __file__) -START_CODE_BLOCK_RE = re.compile(r"^((```py)(?=\s)|(```))") +START_CODE_BLOCK_RE = re.compile(r"^((```py(thon)?)(?=\s)|(```))") @cog_i18n(_)