mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 19:20:56 +01:00
Fixed PHP 7.3 incompatible regular expression
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user