Change str replace to match substring by default (#10038)

This commit is contained in:
Jakub Žádník
2023-08-18 00:18:16 +03:00
committed by GitHub
parent f33b60c001
commit 2e0fb7c1a6
3 changed files with 51 additions and 34 deletions

View File

@ -203,7 +203,7 @@ fn regex_error_in_pattern() {
cwd: dirs.test(), pipeline(
r#"
'source string'
| str replace 'source \Ufoo' "destination"
| str replace -r 'source \Ufoo' "destination"
"#
));