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

escape-case breaks code #2341

Open
fisker opened this issue May 8, 2024 · 1 comment
Open

escape-case breaks code #2341

fisker opened this issue May 8, 2024 · 1 comment

Comments

@fisker
Copy link
Collaborator

fisker commented May 8, 2024

Tagged template literals are not safe to change cases.

(function (a) {console.log(a.raw[0])})`\u{00b1}`
// -> \u{00b1}

(function (a) {console.log(a.raw[0])})`\u{00B1}`
// -> \u{00B1}
@fisker
Copy link
Collaborator Author

fisker commented May 8, 2024

Turns out no-hex-escape has the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant