diff --git a/Cargo.lock b/Cargo.lock index 1be8d8902c..c580a197d6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -752,9 +752,9 @@ dependencies = [ [[package]] name = "bracoxide" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbc0bcb5424e8e1f29c21a00f2d222df5e8e9779732ff03f840315d8fbac708e" +checksum = "7f52991c481aa9d7518254cfb6ce5726d24ff8c5d383d6422cd3793729b0962a" [[package]] name = "brotli" diff --git a/Cargo.toml b/Cargo.toml index 64e54b192e..d1950edf0f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -66,7 +66,7 @@ alphanumeric-sort = "1.5" ansi-str = "0.8" anyhow = "1.0.82" base64 = "0.22.1" -bracoxide = "0.1.4" +bracoxide = "0.1.5" brotli = "7.0" byteorder = "1.5" bytes = "1" diff --git a/crates/nu-command/src/strings/str_/expand.rs b/crates/nu-command/src/strings/str_/expand.rs index 34d2feb7d8..ea98f887ad 100644 --- a/crates/nu-command/src/strings/str_/expand.rs +++ b/crates/nu-command/src/strings/str_/expand.rs @@ -175,6 +175,25 @@ impl Command for SubCommand { ], Span::test_data() )), + }, + + Example { + description: "Supports zero padding in numeric ranges.", + example: "\"A{08..10}B{11..013}C\" | str expand", + result: Some(Value::list( + vec![ + Value::test_string("A08B011C"), + Value::test_string("A08B012C"), + Value::test_string("A08B013C"), + Value::test_string("A09B011C"), + Value::test_string("A09B012C"), + Value::test_string("A09B013C"), + Value::test_string("A10B011C"), + Value::test_string("A10B012C"), + Value::test_string("A10B013C"), + ], + Span::test_data() + )), } ] }