mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
Fix source mapping of Window-style line breaks in presence of Unicode chars. `content.chars().nth(i + 1)` gets the `i + 1`th *char*, but `i` is a byte offset not a char offset. The replacement `content.as_bytes().get(i + 1)` gets the `i + 1`th *byte*, and should also be faster as doesn't require iterating through `chars` again. |
||
|---|---|---|
| .. | ||
| examples | ||
| src | ||
| tests | ||
| Cargo.toml | ||