nushell/crates/nu-command/tests/commands/str_
Solomon 31e1f49cb6
fix ranges over zero-length input (#15062)
Fixes #15061

# User-Facing Changes

Fixes panics when slicing empty input with inclusive ranges:

```nushell
> random binary 0 | bytes at 0..0
Error:   x Main thread panicked.
  |-> at crates/nu-protocol/src/value/range.rs:118:42
  `-> attempt to subtract with overflow
```
2025-02-08 19:57:28 -05:00
..
into_string.rs Avoid taking unnecessary ownership of intermediates (#12740) 2024-05-04 00:53:15 +00:00
join.rs Add string/binary type color to ByteStream (#12897) 2024-05-20 00:35:32 +00:00
mod.rs fix ranges over zero-length input (#15062) 2025-02-08 19:57:28 -05:00