use oracle bind variables to avoid error
This commit is contained in:
@@ -49,7 +49,11 @@ def locate_json_string_body_from_string(content: str) -> Union[str, None]:
|
||||
"""Locate the JSON string body from a string"""
|
||||
maybe_json_str = re.search(r"{.*}", content, re.DOTALL)
|
||||
if maybe_json_str is not None:
|
||||
return maybe_json_str.group(0)
|
||||
maybe_json_str = maybe_json_str.group(0)
|
||||
maybe_json_str = maybe_json_str.replace("\\n", "")
|
||||
maybe_json_str = maybe_json_str.replace("\n", "")
|
||||
maybe_json_str = maybe_json_str.replace("'", '"')
|
||||
return maybe_json_str
|
||||
else:
|
||||
return None
|
||||
|
||||
|
Reference in New Issue
Block a user