1
0
mirror of https://github.com/nushell/nushell.git synced 2025-03-24 05:32:42 +01:00
nushell/crates/nu-command/src/strings
Wind ac4125f8ed
fix range semantic in detect_columns, str substring, str index-of ()
# Description
Fixes: https://github.com/nushell/nushell/issues/7761

It's still unsure if we want to change the `range semantic` itself, but
it's good to keep range semantic consistent between nushell commands.

# User-Facing Changes
### Before
```nushell
❯ "abc" | str substring 1..=2
b
```
### After
```nushell
❯ "abc" | str substring 1..=2
bc
```

# Tests + Formatting
Adjust tests to fit new behavior
2024-05-22 20:00:58 +03:00
..
encode_decode Replace ExternalStream with new ByteStream type () 2024-05-16 07:11:18 -07:00
format Make get_full_help take &dyn Command () 2024-05-19 19:56:33 +02:00
split Make get_full_help take &dyn Command () 2024-05-19 19:56:33 +02:00
str_ fix range semantic in detect_columns, str substring, str index-of () 2024-05-22 20:00:58 +03:00
char_.rs Fix char panic () 2024-05-14 21:10:06 +00:00
detect_columns.rs ListStream touchup () 2024-05-05 16:00:59 +00:00
guess_width.rs Change default algorithm in detect columns () 2024-03-26 13:57:55 +08:00
mod.rs Add command_prelude module () 2024-03-26 21:17:30 +00:00
parse.rs Replace ExternalStream with new ByteStream type () 2024-05-16 07:11:18 -07:00