Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSV.parse( liberal_parsing:true) is used for parsing parameters #689

Merged
merged 2 commits into from
Feb 22, 2020

Conversation

yohm
Copy link
Member

@yohm yohm commented Feb 22, 2020

For parsing parameter values when creating ParameterSets, use CSV.parse(x, liberal_parsing: true) instead of x.split(',') in order to properly parse string according to a proper CSV format.

Previously, if parameter type is String and the given parameter x is valid as a JSON string, it is regarded as a single string. However, this specification is tricky and prevent users to properly escape comma.

For instance, three parameter sets (a,b,aaa,bbb) are created for the following input.
image

@yohm yohm added the bug label Feb 22, 2020
@yohm yohm added this to the v3.8.0 milestone Feb 22, 2020
@yohm yohm self-assigned this Feb 22, 2020
@yohm
Copy link
Member Author

yohm commented Feb 22, 2020

Fixed #680

@yohm yohm merged commit f7cbc2e into develop Feb 22, 2020
@yohm yohm deleted the csv_parse branch February 22, 2020 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant