Closed maxeisele closed 1 month ago
Thanks for finding this out. Could you provide the seed string causing this crash?
As written in the original post, the seed "{"
(with the quotation marks) crashes.
The implementation should ignore brackets surrounded by quotes from creating hierarchies. Unfortunately, I missed this corner case when a single bracket character is within quotes. The issue is an interesting find, I added this check in the braces_tree
method, it should fix the bug.
https://github.com/rifatarefin/treevada/blob/dc9d29c106ec3246607d9c3bfb9ffd4abac16120/start.py#L140
Hi,
I found that treevada crashes, when there are non-closed brackets in a string e.g.
"{"
. This string is a valid for a json parser. Here is a traceback of the error, indicating that the issue is in the methodbraces_tree
.