-
Notifications
You must be signed in to change notification settings - Fork 126
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
Sanitize strings in to_cryptol_str
in quoting.py
#1541
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works for me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@m-yac Would you be willing to update |
@weaversa I can do that, let me check internally about version numbering and I'll let you know when an update to PyPI is pushed. |
This PR updates
to_cryptol_str
to correctly sanitize strings. For example, ifs = '" \ \n'
, thencry_f('{s}')
now correctly gives'"\\" \\\\ \\n"'
instead of the unescaped'"" \\ \n"'
.