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

Wrongly interprets unicode strings #13

Open
dohnto opened this issue Oct 12, 2017 · 1 comment
Open

Wrongly interprets unicode strings #13

dohnto opened this issue Oct 12, 2017 · 1 comment
Milestone

Comments

@dohnto
Copy link

dohnto commented Oct 12, 2017

How to reproduce

# in.tmpl
{{ env ("A") | default "[^\u0000-\uFFFF]" }}
$ goenvtemplator2 -version
2017/10/12 15:03:02 Version: -2.0.0-rc3
$ goenvtemplator2 -template $PWD/in.tmpl:/dev/stdout
# in.tmpl
[^-�]
@dohnto
Copy link
Author

dohnto commented Oct 12, 2017

Possible solution:

# in.tmpl
{{ env ("A") | default "[^\\u0000-\\uFFFF]" }}

@dohnto dohnto added this to the Version 2 milestone Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant