Backup #16

Merged
cswimr merged 41 commits from backup into main 2024-01-31 15:58:08 -05:00
Showing only changes of commit c2aa674bff - Show all commits

View file

@ -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(.*?)\n```", text, re.DOTALL)
if match:
return match.group(1).strip()
else: