mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 11:10:57 +01:00
little change in the pattern to get match results correctly
This commit is contained in:
@@ -65,11 +65,13 @@ 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];
|
||||
$data['line'] = $matches[0][3];
|
||||
$data['match'] = $matches[0][4];
|
||||
$data['file'] = $matches[0][2];
|
||||
$data['line'] = $matches[0][3];
|
||||
$data['match'] = $matches[0][4];
|
||||
|
||||
$searchResults[] = $data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user