Skip to content

Commit c9375c5

Browse files
committed
Cgit: parse committer and author without email
Fixes #387 Signed-off-by: Damien Regad <[email protected]>
1 parent 7ae74a0 commit c9375c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SourceCgit/SourceCgit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public function commit_revision( $p_input ) {
250250
* @return array author / committer
251251
*/
252252
public function commit_author( $p_input ) {
253-
$pattern = "<td>(?:.*?</span>)?(.*?) <(.*?@.*?)></td><td class='right'>(.*?)</td>#";
253+
$pattern = "<td>(?:.*?</span>)?(.*?) <(.*?@.*?)?></td><td class='right'>(.*?)</td>#";
254254

255255
preg_match( "#<tr><th>author</th>" . $pattern, $p_input, $t_matches );
256256
$t_commit['author'] = trim( $t_matches[1] );

0 commit comments

Comments
 (0)