Skip to content

Commit

Permalink
Merge pull request #99 from geradrum/main
Browse files Browse the repository at this point in the history
Clean '<whisper> - </whisper>' and 'INFO Ctrl+D' from the output
  • Loading branch information
freekmurze authored Mar 1, 2023
2 parents 4585bc7 + c37a4e9 commit 0ac5c8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Tinker.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ protected function cleanOutput(string $output): string
{
$output = preg_replace('/(?s)(<aside.*?<\/aside>)|Exit: Ctrl\+D/ms', '$2', $output);

$output = preg_replace('/(?s)(<whisper.*?<\/whisper>)|INFO Ctrl\+D\./ms', '$2', $output);

return trim($output);
}
}

0 comments on commit 0ac5c8a

Please sign in to comment.