Skip to content

Commit

Permalink
bugfix: import statement missing
Browse files Browse the repository at this point in the history
  • Loading branch information
haesleinhuepf committed Nov 2, 2024
1 parent 173fcf2 commit 54e42ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/git_bob/_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def restore_outputs_of_code_cells(new_content, original_ipynb_file_content):
def text_to_json(text):
"""Converts a string, e.g. a response from an LLM, to a valid JSON object."""
import json
import re

text = re.sub(r'[\x00-\x1f\x7f]', '', text)

Expand Down

0 comments on commit 54e42ec

Please sign in to comment.