-
Notifications
You must be signed in to change notification settings - Fork 165
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
tk fmt panic when encountering unescaped regex in string #566
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@sbarzowski I think this might be of interest to you. Please let me know if you'd like me to open an issue for it on the |
I think you just have to escape the slash:
I'm not an expert on this but I'm pretty sure this is part of the JSON spec, the |
I agree, but I assume panicking might not be the ideal behaviour here. I'll see if I can repro it on the go-jsonnet side and open a bug there. |
Good point, feel free to reopen if this panic is Tanka specific |
Given this invalid jsonnet:
running
./tk fmt test.jsonnet
(latestmain - 774c664
) panics with the following stack:LE: I tried updating
go-jsonnet
to the latest version withgo get -u github.com/google/go-jsonnet@12bd29d
, but I still see the same issue. Please let me know if you wish me to open an issue on thego-jsonnet
side too.The text was updated successfully, but these errors were encountered: