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

Bad unicode escape – bad suggestion :) #356

Open
lydell opened this issue Feb 14, 2023 · 0 comments
Open

Bad unicode escape – bad suggestion :) #356

lydell opened this issue Feb 14, 2023 · 0 comments

Comments

@lydell
Copy link

lydell commented Feb 14, 2023

"\u{01}" is invalid syntax. Elm suggests "\u{001}" instead, which is also invalid and funnily it suggests going back to "\u{01}" :)

> "\u{01}"
|
-- BAD UNICODE ESCAPE ----------------------------------------------------- REPL

Every code point needs at least four digits:

3|   "\u{01}"
      ^^^^^^
Try \u{001} instead?

> "\u{001}"
|
-- BAD UNICODE ESCAPE ----------------------------------------------------- REPL

Every code point needs at least four digits:

3|   "\u{001}"
      ^^^^^^^
Try \u{01} instead?

It gives a correct suggestion for "\u{1}":

> "\u{1}"
|
-- BAD UNICODE ESCAPE ----------------------------------------------------- REPL

Every code point needs at least four digits:

3|   "\u{1}"
      ^^^^^
Try \u{0001} instead?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant