Skip to content

Commit

Permalink
Fixed PHP 7.3 incompatible regular expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattie112 committed Apr 17, 2019
1 parent a387536 commit c13f592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Git/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public function searchTree($query, $branch)
continue;
}

preg_match_all('/([\w-._]+):([^:]+):([0-9]+):(.+)/', $result, $matches, PREG_SET_ORDER);
preg_match_all('/([\w\-._]+):([^:]+):([0-9]+):(.+)/', $result, $matches, PREG_SET_ORDER);

$data['branch'] = $matches[0][1];
$data['file'] = $matches[0][2];
Expand Down

0 comments on commit c13f592

Please sign in to comment.