Skip to content

Commit

Permalink
fix(core): use replacen instead of replace to only replace 1 instance…
Browse files Browse the repository at this point in the history
… of these codes
  • Loading branch information
Cammisuli committed Jan 16, 2024
1 parent eb50e01 commit ef6ca5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nx/src/native/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ pub fn run_command(
if strip_clear_code {
strip_clear_code = false;
// remove clear screen
content = content.replace("\x1B[2J", "");
content = content.replacen("\x1B[2J", "", 1);
// remove cursor position 1,1
content = content.replace("\x1B[H", "");
content = content.replacen("\x1B[H", "", 1);
}
message_tx.send(content.to_string()).ok();
if !quiet {
Expand Down

0 comments on commit ef6ca5f

Please sign in to comment.