1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-30 12:07:46 +00:00

fix: use utf-8 length instead of byte length

This commit is contained in:
Kevin Amado 2022-02-24 13:56:41 -05:00
parent 8213b1fecb
commit 08627c847e
4 changed files with 23 additions and 3 deletions

View file

@ -17,6 +17,18 @@ Types of changes
- Security in case of vulnerabilities.
-->
### Fixed
- Multiline strings are handled as utf-8 correctly, preventing panics
on utf-8 whitespace like:
```nix
''
foo
\u{2002}bar
''
```
## [0.5.0] - 2022-02-23
### Changed