little change in the pattern to get match results correctly

This commit is contained in:
Marcos Coelho
2012-12-19 23:21:07 -02:00
parent 44ed193402
commit 3d405d2b3f

View File

@@ -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];
$searchResults[] = $data;
}