Fixed PHP 7.3 incompatible regular expression

This commit is contained in:
Matthijs van Schooten
2019-04-17 13:29:14 +02:00
parent a387536257
commit c13f59277b

View File

@@ -339,7 +339,7 @@ class Repository extends BaseRepository
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];