nushell/crates/nu-command/src/strings
Bruce Weirdan f82c43f850
Consider numbers to be part of a word in split words (#13502)
# Description

Before this change, `"hash sha256 123 ok" | split words` would return
`[hash sha ok]` - which is surprising to say the least.

Now it will return `[hash sha256 123 ok]`.

Refs:
https://discord.com/channels/601130461678272522/615253963645911060/1268151658572025856

# User-Facing Changes
`split words` will no longer remove digits.

# Tests + Formatting
Added a test for this specific case.

# After Submitting
2024-07-31 16:35:41 -05:00
..
encode_decode Internal representation (IR) compiler and evaluator (#13330) 2024-07-10 17:33:59 -07:00
format Add and use new Signals struct (#13314) 2024-07-07 22:29:01 +00:00
split Consider numbers to be part of a word in split words (#13502) 2024-07-31 16:35:41 -05:00
str_ Add and use new Signals struct (#13314) 2024-07-07 22:29:01 +00:00
char_.rs Fix output format borken in char --list (#13417) 2024-07-21 06:30:14 -05:00
detect_columns.rs Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
guess_width.rs Skip decoration lines for detect columns --guess (#13274) 2024-06-30 07:38:41 -05:00
mod.rs Internal representation (IR) compiler and evaluator (#13330) 2024-07-10 17:33:59 -07:00
parse.rs tweak parse usage and examples to be more clear (#13363) 2024-07-12 09:48:27 -05:00