added note to find doc example

...that regular find without regex is case insensitive.
This commit is contained in:
Ben Yang 2024-06-27 16:29:41 +08:00
parent ab93d89e33
commit 54f75edcdf

View File

@ -70,8 +70,8 @@ impl Command for Find {
result: None,
},
Example {
description: "Search and highlight text for a term in a string",
example: r#"'Cargo.toml' | find toml"#,
description: "Search and highlight text for a term in a string. Note that regular search is case insensitive",
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 {