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

Escape curl braces in TextTransform #1355

Open
fleed opened this issue Nov 12, 2016 · 0 comments
Open

Escape curl braces in TextTransform #1355

fleed opened this issue Nov 12, 2016 · 0 comments

Comments

@fleed
Copy link

fleed commented Nov 12, 2016

I'm trying to use TextTransform with an nginx.conf file.
The file contains braces {, and if I run the cake task with transformation I get the following error:

Error: Input string was not in a correct format.

I can escape the brace using a double character ({{), but then the output contains the same sequence ({{) instead of what I need ({).

I've found this closed issue: #380 but I think that it doesn't work in my case because of closing braces.

Example (working):

var text = TransformText("{").ToString();

Example (not working, throws the mentioned error):

var text = TransformText("{something}").ToString();

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

No branches or pull requests

1 participant