fix clean json
This commit is contained in:
+1
-1
@@ -545,7 +545,7 @@ julia> clean_json_response(text)
|
||||
```
|
||||
"""
|
||||
function clean_json_response(text::String)
|
||||
removelist = ["{", "}", "```", "json"]
|
||||
removelist = ["{", "}", "```", "json", "\n"]
|
||||
for i in removelist
|
||||
while occursin(i, text)
|
||||
text = replace(text, i => "")
|
||||
|
||||
Reference in New Issue
Block a user