From 168f62d43fec30c32579a55ee3170eb8b3e7b254 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 31 Jan 2024 13:10:31 -0500 Subject: [PATCH] fix(backup): properly support codeblocks (maybe?) --- backup/backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/backup.py b/backup/backup.py index d70093d..aa791ba 100644 --- a/backup/backup.py +++ b/backup/backup.py @@ -75,7 +75,7 @@ class Backup(commands.Cog): return def extract_json_from_codeblock(self, text): - match = re.match(r"```(?:\w+)?\n(.*?)\n```", text, re.DOTALL) + match = re.match(r"```(?:\w+)?\n(.*?)(?