From c13f59277b8430a1a447740be363c9d5c66331c3 Mon Sep 17 00:00:00 2001 From: Matthijs van Schooten Date: Wed, 17 Apr 2019 13:29:14 +0200 Subject: [PATCH] Fixed PHP 7.3 incompatible regular expression --- src/Git/Repository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Git/Repository.php b/src/Git/Repository.php index 3dd44059..81a175fc 100644 --- a/src/Git/Repository.php +++ b/src/Git/Repository.php @@ -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];