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

Avoid escaping string values with equal sign in complex parameters #116

Merged
merged 1 commit into from
May 13, 2024

Conversation

thschmitt
Copy link
Collaborator

All equal signs of an string assignment in complex parameters were required to be escaped, e.g.

--parts "id=hello\\=world"

Extended the type converter so that the part after an equal sign will always be treated as a simple value without splitting it in multiple parts. Assignments are always a key-value pair.

This allows the user to use values with equals signs, like base64 encoded strings without the need to escape, e.g.

--parts "id=hello=world"

This will set the id value to 'hello=world'.

All equal signs of an string assignment in complex parameters were
required to be escaped, e.g.

`--parts "id=hello\\=world"`

Extended the type converter so that the part after an equal sign will
always be treated as a simple value without splitting it in multiple
parts. Assignments are always a key-value pair.

This allows the user to use values with equals signs, like base64
encoded strings without the need to escape, e.g.

`--parts "id=hello=world"`

This will set the id value to 'hello=world'.
@thschmitt thschmitt merged commit 022c5d8 into main May 13, 2024
4 of 6 checks passed
@thschmitt thschmitt deleted the feature/avoid-escape-equal-sign branch October 8, 2024 08:13
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