plutoa386 commited on
Commit
7e97447
·
1 Parent(s): 531ed6f

potential fix to the fix that didnt work

Browse files
Files changed (1) hide show
  1. crew.py +1 -1
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*({.*})\s*```", s, re.DOTALL | re.IGNORECASE)
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: