Skip to content

Commit f39bd41

Browse files
committed
⚡ enhance dot decoding condition for cleaner root keys
1 parent 4e3be95 commit f39bd41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/qs_codec/decode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def _parse_object(
381381
# (Top‑level dot splitting is performed earlier by the key splitter.)
382382
clean_root: str = root[1:-1] if root.startswith("[") and root.endswith("]") else root
383383

384-
if options.decode_dot_in_keys:
384+
if options.decode_dot_in_keys and "%2" in clean_root:
385385
decoded_root: str = clean_root.replace("%2E", ".").replace("%2e", ".")
386386
else:
387387
decoded_root = clean_root

0 commit comments

Comments
 (0)