From e5db0a366a3aba51140293a94736c716cb99736a Mon Sep 17 00:00:00 2001 From: Axel Rutz Date: Sun, 6 Aug 2017 19:29:44 +0200 Subject: [PATCH] Fixed the last workaround #112 --- src/GitElephant/Objects/Remote.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GitElephant/Objects/Remote.php b/src/GitElephant/Objects/Remote.php index eeaa2883..964f65c7 100644 --- a/src/GitElephant/Objects/Remote.php +++ b/src/GitElephant/Objects/Remote.php @@ -203,13 +203,13 @@ public function parseOutputLines(Array $remoteDetails) throw new \UnexpectedValueException(sprintf('Invalid data provided for remote detail parsing')); } $this->name = $name; - $fetchURLPattern = '/^(Fetch\s+URL|\s*URL zum Abholen):\s*(.*)$/'; + $fetchURLPattern = '/^(?:Fetch\s+URL|\s*URL zum Abholen):\s*(.*)$/'; $fetchURL = null; - $pushURLPattern = '/^(Push\s+URL|\s*URL zum Versenden):\s*(.*)$/'; + $pushURLPattern = '/^(?:Push\s+URL|\s*URL zum Versenden):\s*(.*)$/'; $pushURL = null; - $remoteHEADPattern = '/^(HEAD\s+branch|\s*Hauptbranch):\s*(.*)$/'; + $remoteHEADPattern = '/^(?:HEAD\s+branch|\s*Hauptbranch):\s*(.*)$/'; $remoteHEAD = null; $remoteBranchHeaderPattern = '/^Remote[\s-]+branch(?:es)?:$/i';