Browse code

Fixed PHP 7.3 incompatible regular expression

Matthijs van Schooten authored on 17.04.2019 13:29:14
Showing 1 changed files

... ...
@@ -339,7 +339,7 @@ class Repository extends BaseRepository
339 339
                 continue;
340 340
             }
341 341
 
342
-            preg_match_all('/([\w-._]+):([^:]+):([0-9]+):(.+)/', $result, $matches, PREG_SET_ORDER);
342
+            preg_match_all('/([\w\-._]+):([^:]+):([0-9]+):(.+)/', $result, $matches, PREG_SET_ORDER);
343 343
 
344 344
             $data['branch'] = $matches[0][1];
345 345
             $data['file'] = $matches[0][2];