forked from cswimr/SeaCogs
Revert "fix(backup): properly support codeblocks (maybe?)"
This reverts commit 168f62d43f
.
This commit is contained in:
parent
168f62d43f
commit
c2aa674bff
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ class Backup(commands.Cog):
|
||||||
return
|
return
|
||||||
|
|
||||||
def extract_json_from_codeblock(self, text):
|
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:
|
if match:
|
||||||
return match.group(1).strip()
|
return match.group(1).strip()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue