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
// CanBackquote reports whether the string s can be represented
// unchanged as a single-line backquoted string without control
// characters other than space and tab.
Since U+007F is a control character, the function should protect against them. That is a
bug.
Regarding bad UTF-8, it's much less clear. Badly encoded UTF-8 is not a "control
character". On the other hand, if the UTF-8 is bad, the string cannot be "represented
unchanged" in some sense.
I will address the 7F issue and open a new issue for bad UTF-8, which is a larger topic
less clear cut. See issue #7572.
The text was updated successfully, but these errors were encountered: