potential fix to the fix that didnt work
Browse files
crew.py
CHANGED
|
@@ -629,7 +629,7 @@ def parse_json_from_markdown(s: str) -> dict:
|
|
| 629 |
Returns dict on success, or raises ValueError on failure.
|
| 630 |
"""
|
| 631 |
# Try to find JSON inside ```json ... ``` or ``` ... ```
|
| 632 |
-
match = re.search(r"```(?:json)?\s*
|
| 633 |
if match:
|
| 634 |
json_str = match.group(1)
|
| 635 |
else:
|
|
|
|
| 629 |
Returns dict on success, or raises ValueError on failure.
|
| 630 |
"""
|
| 631 |
# Try to find JSON inside ```json ... ``` or ``` ... ```
|
| 632 |
+
match = re.search(r"```(?:json)?\s*```", s, re.DOTALL | re.IGNORECASE)
|
| 633 |
if match:
|
| 634 |
json_str = match.group(1)
|
| 635 |
else:
|