1
0
mirror of https://github.com/nushell/nushell.git synced 2025-06-14 14:06:50 +02:00
Wind 6e036ca09a
update unicode-width to 0.2 ()
# Description
When looking into , I found that `unicode-width` from 0.1 to 0.2
contains a breaking change, the mainly change is it treats newlines as
width 1. So relative tests(str stats) are broken.
But I think it's ok to adjust the test.

# User-Facing Changes
The output of `str stats` might change if there are `\n` in the input.
### Before
```nushell
> "a\nb" | str stats | get unicode-width
2
```
### After
```nushell
> "a\nb" | str stats | get unicode-width
3
```
# Tests + Formatting
Adjusted 2 tests.

# After Submitting
NaN
2024-11-29 09:09:45 +08:00
..
2024-11-29 09:09:45 +08:00
2024-10-29 17:33:46 +01:00