-
-
Notifications
You must be signed in to change notification settings - Fork 124
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: strings #136
fix: strings #136
Conversation
2ce22c0
to
a6635e9
Compare
a6635e9
to
000f426
Compare
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.
Looks awesome! 1 thing about escaping single quotes
// $string = 'You can also have embedded\\n newlines in | ||
// strings this way as it is | ||
// okay to do'; | ||
$string = 'Arnold once said: "I\\'ll be back"'; |
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.
Same thing - i think an extra \
got added
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.
@mgrip yep let's add test, but here all fine with \
, jest always escaped special characters
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.
just realized that - thanks! looks good to me!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
<?php | ||
$string = 'this is a simple string'; | ||
// $string = 'You can also have embedded\\n newlines in |
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 should remain <- nvm realized this is how the snapshot gets printed'You can also have embedded\n newlines in
, right?
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.
@mgrip yes
All buggy things are commented.
Feel free to feedback.
Issue about syntax: #138.
Let's review this and merge as is. It is maximum how we can handle strings right now.