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';