Skip to content

Preserve escaped quote characters in argument values #6

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

Closed
mikemybytes opened this issue Jul 15, 2022 · 1 comment
Closed

Preserve escaped quote characters in argument values #6

mikemybytes opened this issue Jul 15, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@mikemybytes
Copy link
Owner

As for now, quote characters are being removed from the argument values using replace(...) call. Yet, in certain use cases, they may appear inside. Typically, when a special character should not be treated as one, some kind of escaping is required (like prefixing it with \). A similar solution could be considered here.

@mikemybytes mikemybytes added the enhancement New feature or request label Jul 15, 2022
@mikemybytes mikemybytes added this to the 1.0.0 milestone Nov 18, 2022
@mikemybytes
Copy link
Owner Author

There's a similar quoting-related issue with using braces (curly brackets) with default indexed argument placeholders syntax. There, instead of introducing rather tricky quoting logic, an alternative syntax (positional arguments, see #25) has been introduced.

A similar approach could be adopted here. Since there's a way to use a different quoteCharacter, implementing escaping logic feels unnecessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant