diff --git a/crates/nu-command/src/strings/parse.rs b/crates/nu-command/src/strings/parse.rs index 06d26be446..ebeeee8a71 100644 --- a/crates/nu-command/src/strings/parse.rs +++ b/crates/nu-command/src/strings/parse.rs @@ -20,7 +20,7 @@ impl Command for Parse { } fn search_terms(&self) -> Vec<&str> { - vec!["pattern", "match"] + vec!["pattern", "match", "regex"] } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/strings/split/column.rs b/crates/nu-command/src/strings/split/column.rs index 98837474d4..7852aa49b7 100644 --- a/crates/nu-command/src/strings/split/column.rs +++ b/crates/nu-command/src/strings/split/column.rs @@ -45,7 +45,7 @@ impl Command for SubCommand { } fn search_terms(&self) -> Vec<&str> { - vec!["separate", "divide"] + vec!["separate", "divide", "regex"] } fn run( diff --git a/crates/nu-command/src/strings/split/list.rs b/crates/nu-command/src/strings/split/list.rs index 8db4ef04df..7bfc4fb8a4 100644 --- a/crates/nu-command/src/strings/split/list.rs +++ b/crates/nu-command/src/strings/split/list.rs @@ -38,7 +38,7 @@ impl Command for SubCommand { } fn search_terms(&self) -> Vec<&str> { - vec!["separate", "divide"] + vec!["separate", "divide", "regex"] } fn run( diff --git a/crates/nu-command/src/strings/split/row.rs b/crates/nu-command/src/strings/split/row.rs index 3dea82213d..74d5d322c7 100644 --- a/crates/nu-command/src/strings/split/row.rs +++ b/crates/nu-command/src/strings/split/row.rs @@ -38,7 +38,7 @@ impl Command for SubCommand { } fn search_terms(&self) -> Vec<&str> { - vec!["separate", "divide"] + vec!["separate", "divide", "regex"] } fn run( diff --git a/crates/nu-command/src/strings/str_/replace.rs b/crates/nu-command/src/strings/str_/replace.rs index 91b7b45dd4..5c63563689 100644 --- a/crates/nu-command/src/strings/str_/replace.rs +++ b/crates/nu-command/src/strings/str_/replace.rs @@ -61,7 +61,7 @@ impl Command for SubCommand { } fn search_terms(&self) -> Vec<&str> { - vec!["search", "shift", "switch"] + vec!["search", "shift", "switch", "regex"] } fn run(