mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-08-16 20:05:02 +00:00
Fix for dirty_json helper and associated test class
This commit is contained in:
parent
f5f2a02d67
commit
e229f4a92f
4 changed files with 61 additions and 1 deletions
|
|
@ -250,7 +250,7 @@ class DirtyJson:
|
|||
return result.strip()
|
||||
|
||||
def _peek(self, n):
|
||||
peek_index = self.index
|
||||
peek_index = self.index + 1
|
||||
result = ''
|
||||
for _ in range(n):
|
||||
if peek_index < len(self.json_string):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue