You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The string u'\\\\\u1234' could be minified as ur'\\\u1234' for a saving of a character. I prevented this choice because it's absurdly tricky to get backslash-escaping correct in r-prefixed strings.
We mustn't minify u'\\\u1234' as ur'\\u1234' because those two strings are not the same: the first blackslash prevents the second from starting a Unicode escape sequence!
I'm afraid I punted on this one for the moment: at least it currently outputs an accurate result, if not the minimal one.
(Perhaps it would be easier to solve this by generate-and-test than by analysis.)
The text was updated successfully, but these errors were encountered:
The string
u'\\\\\u1234'
could be minified asur'\\\u1234'
for a saving of a character. I prevented this choice because it's absurdly tricky to get backslash-escaping correct inr
-prefixed strings.We mustn't minify
u'\\\u1234'
asur'\\u1234'
because those two strings are not the same: the first blackslash prevents the second from starting a Unicode escape sequence!I'm afraid I punted on this one for the moment: at least it currently outputs an accurate result, if not the minimal one.
(Perhaps it would be easier to solve this by generate-and-test than by analysis.)
The text was updated successfully, but these errors were encountered: