Wind ac4125f8ed
fix range semantic in detect_columns, str substring, str index-of (#12894)
# 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
..
2024-05-04 15:56:16 +03:00
2022-11-22 16:58:11 -08:00
2024-05-10 11:06:33 -05:00
2023-10-24 12:48:05 -05:00
2024-01-25 14:16:49 +08:00
2024-04-13 14:58:54 +00:00
2023-11-03 10:09:33 -05:00
2023-10-19 09:30:34 -05:00
2024-05-03 08:36:10 +08:00
2024-05-02 09:36:37 -04:00
2023-11-17 19:30:53 -06:00
2024-05-02 09:36:37 -04:00
2024-04-16 19:08:58 +08:00
2024-05-06 23:20:27 +00:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2024-02-17 10:51:20 +02:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2024-05-03 08:36:10 +08:00
2024-05-03 08:36:10 +08:00
2024-03-11 19:46:04 +01:00