We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51c91f6 commit 8d36271Copy full SHA for 8d36271
codex-rs/core/tests/suite/apply_patch_cli.rs
@@ -741,8 +741,8 @@ async fn apply_patch_cli_can_use_shell_command_output_as_patch_input() -> Result
741
fn stdout_from_shell_output(output: &str) -> String {
742
let normalized = output.replace("\r\n", "\n").replace('\r', "\n");
743
normalized
744
- .splitn(2, "Output:\n")
745
- .nth(1)
+ .split_once("Output:\n")
+ .map(|x| x.1)
746
.unwrap_or("")
747
.trim_end_matches('\n')
748
.to_string()
0 commit comments