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

Panic on unicode space #193

Closed
yorickvP opened this issue Feb 24, 2022 · 1 comment
Closed

Panic on unicode space #193

yorickvP opened this issue Feb 24, 2022 · 1 comment
Labels
component | engine Core algorithm of the tool help wanted Extra attention is needed status | it is a good thing We agree it is good to implement this type | bug Something isn't working

Comments

@yorickvP
Copy link

Input:

''
  foo
 bar
''

Output:

thread 'main' panicked at 'byte index 2 is not a char boundary; it is inside '\u{2002}' (bytes 0..3) of ` bar`', src/alejandra_engine/src/rules/string.rs:89:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@kamadorueda kamadorueda added component | engine Core algorithm of the tool help wanted Extra attention is needed status | it is a good thing We agree it is good to implement this type | bug Something isn't working labels Feb 24, 2022
@kamadorueda
Copy link
Owner

Thank you, solved in: #198

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component | engine Core algorithm of the tool help wanted Extra attention is needed status | it is a good thing We agree it is good to implement this type | bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants