From c37a4e912036cad8c1c34b6b9f71c0516d863e1f Mon Sep 17 00:00:00 2001 From: Gerardo Ramirez Date: Wed, 1 Mar 2023 01:02:04 -0600 Subject: [PATCH] Clean ' - ' and 'INFO Ctrl+D' from the output --- src/Tinker.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tinker.php b/src/Tinker.php index 699c20a..8ddf0e9 100644 --- a/src/Tinker.php +++ b/src/Tinker.php @@ -114,6 +114,8 @@ protected function cleanOutput(string $output): string { $output = preg_replace('/(?s)()|Exit: Ctrl\+D/ms', '$2', $output); + $output = preg_replace('/(?s)()|INFO Ctrl\+D\./ms', '$2', $output); + return trim($output); } }