update str find-replace to str replace (#5120)

This commit is contained in:
Darren Schroeder
2022-04-07 08:41:09 -05:00
committed by GitHub
parent 690ec9abfa
commit 4129f15eb9
10 changed files with 97 additions and 25 deletions

View File

@ -165,7 +165,7 @@ fn find_and_replaces() {
cwd: dirs.test(), pipeline(
r#"
open sample.toml
| str find-replace KATZ "5289" fortune.teller.phone
| str replace KATZ "5289" fortune.teller.phone
| get fortune.teller.phone
"#
));
@ -190,7 +190,7 @@ fn find_and_replaces_without_passing_field() {
r#"
open sample.toml
| get fortune.teller.phone
| str find-replace KATZ "5289"
| str replace KATZ "5289"
"#
));