Skip to content

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

Merged
pradeeban merged 1 commit into
ControlCore-Project:devfrom
avinxshKD:fix/parsedict-comma-nesting
Nov 2, 2026
Merged

pradeeban merged 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
@pradeeban

Copy link
Copy Markdown
Member

Welcome back @avinxshKD. Got some time to finally look at the PRs.

@pradeeban
pradeeban merged commit 727a0d3 into ControlCore-Project:dev Nov 2, 2026
14 checks passed
@avinxshKD

Copy link
Copy Markdown
Contributor Author

@pradeeban ay ay Captain, always here.

theres gonna be lots of not so needed PRs for you to look now lol.

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.

2 participants