Update crates/nu-command/src/filters/find.rs

Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
This commit is contained in:
suimong 2024-06-27 22:11:44 +08:00 committed by GitHub
parent 5821e7d093
commit 50eb8d5a6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,7 +70,7 @@ impl Command for Find {
},
Example {
description: "Search and highlight text for a term in a string. Note that regular search is case insensitive",
example: r#"'Cargo.toml' | find Cargo"#,
example: r#"'Cargo.toml' | find cargo"#,
result: Some(Value::test_string("\u{1b}[37mCargo.\u{1b}[0m\u{1b}[41;37mtoml\u{1b}[0m\u{1b}[37m\u{1b}[0m".to_owned())),
},
Example {