-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Fix charlist formatting issue on '\"' #13364
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
Conversation
I am worried this may introduce other regressions. What if we check if the string has a “ and, if so, we use the sigil c with single quotes? |
This is a fair point, I actually started working on a prop-based tests to catch some other cases and indeed it did.
Could be a strategy, but it might be a bit more tedious to check for interpolation (not a big deal). |
@josevalim a91b626 seems to pass everything my prop-based test throws at it, and might be safer than the |
I am honestly a bit worried because we are adding logic for handling So I would still prefer to emit |
That's a great point. Will go with your approach! |
@josevalim we should be good now, and the property-based tests still pass ✅ |
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.
Beautiful, please backport to v1.16 as well!
Close #13363