Fix for dirty_json helper and associated test class

This commit is contained in:
Dariusz Majewski committed 2024-08-18 10:03:31 +02:00
1 parent f5f2a02d67
commit e229f4a92f
4 files changed
+61 -1

No files matched your search

+1 -1
View File
@@ -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):