Skip to content

fix: handle comma-containing values in parsedict() - #611

Open
avinxshKD wants to merge 1 commit into
ControlCore-Project:devfrom
avinxshKD:fix/parsedict-comma-nesting
Open

avinxshKD wants to merge 1 commit into
ControlCore-Project:devfrom
avinxshKD:fix/parsedict-comma-nesting

Conversation

@avinxshKD

Copy link
Copy Markdown
Contributor

parsedict() was splitting on , with std::getline, which breaks whenever a value contains a comma (nested lists, tuples, etc.) and silently drops any keys that follow.

Swapped the naive comma split to reuse the existing parse_literal_value / parse_literal_string parser already in concore_base.hpp, which properly tracks quote and bracket nesting depth. Also added regression coverage in TestConcoreHpp.cpp.

Fixes #610

@avinxshKD
avinxshKD force-pushed the fix/parsedict-comma-nesting branch from f25c36e to 7e7da21 Compare October 12, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant