mirror of
https://github.com/nushell/nushell.git
synced 2025-08-19 10:42:15 +02:00
Change str replace
to match substring by default (#10038)
This commit is contained in:
@@ -20,7 +20,7 @@ fn can_get_help(#[case] exp_result: &str) -> TestResult {
|
||||
--f2:string, # f2 named no default
|
||||
--f3:int=33 # f3 named default 3
|
||||
] {{ true }};
|
||||
help t | ansi strip | find `{exp_result}` | get 0 | str replace -a '^(.*({exp_result}).*)$' '$2'"#,
|
||||
help t | ansi strip | find `{exp_result}` | get 0 | str replace -ar '^(.*({exp_result}).*)$' '$2'"#,
|
||||
),
|
||||
exp_result,
|
||||
)
|
||||
|
Reference in New Issue
Block a user