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

fix: handle escapes such as \n in expressions #251

Merged
merged 1 commit into from
Oct 14, 2018

Conversation

satya164
Copy link
Member

Summary

Previously, a newline escape sequence would introduce an actual new line in the generated code, breaking it. We now use String.raw to get the raw string which fixes it.

Test plan

See tests.

Previously, a newline escape sequence would introduce an actual new line in the generated code, breaking it. We now use String.raw to get the raw string which fixes it
@satya164 satya164 requested review from thymikee and zamotany October 13, 2018 01:20
@callstack-bot
Copy link

Hey @satya164, thank you for your pull request 🤗.
The coverage report for this branch can be viewed here.

@satya164 satya164 merged commit f526542 into master Oct 14, 2018
@satya164 satya164 deleted the @satya164/handle-escape branch October 14, 2018 13:57
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

Successfully merging this pull request may close these issues.

3 participants