Fixed invalid preferences on submission

This commit is contained in:
mr. m 2025-01-30 12:50:22 +00:00
parent 7da97d10ec
commit 7b4c3e1628

View file

@ -263,6 +263,8 @@ def get_preferences():
return {}
content = re.sub(r"```json\n*", "", content)
content = re.sub(r"\n*```\n*", "", content)
if content.strip() == "":
return {}
if content.startswith("{") and content.endswith("}"):
print(