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