Skip to content

Commit

Permalink
better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrd committed Nov 25, 2023
1 parent 66d7bee commit 91274ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dictdatabase/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ def seek_index_through_value_bytes(json_bytes: bytes, index: int) -> int:
backslash_count += 1
j -= 1
if backslash_count % 2 == 0:
# If the number of backslashes is even, the quote is not escaped
break
# Else, the quote is escaped, and the loop continues

# Possible exit point where string ends and nesting is zero
# Exit point where string ends and nesting is zero
if list_depth == 0 and dict_depth == 0:
return i + 1

Expand Down

0 comments on commit 91274ce

Please sign in to comment.