From 6b6c7110284f8bd8b2d5178db16aa29e5aa1c9db Mon Sep 17 00:00:00 2001 From: Bart Platak Date: Tue, 25 Jul 2017 11:59:40 +0100 Subject: [PATCH] Modifies parsing in InfoCommand.php to work with output containing \x08 characters written by ConsoleIO::doOverwrite (#8) --- src/InfoCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/InfoCommand.php b/src/InfoCommand.php index f017655..f4a4f01 100644 --- a/src/InfoCommand.php +++ b/src/InfoCommand.php @@ -72,7 +72,7 @@ public function run($package, $installed = false) return false; } - $rawLines = explode("\n", str_replace("\r\n", "\n", $output)); + $rawLines = explode("\n", str_replace("\r\n", "\n", preg_replace('/\x08+/', "\n", $output))); $result = []; foreach ($rawLines as $line) {