Backup #16
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue