diff --git a/SourceGitweb/SourceGitweb.php b/SourceGitweb/SourceGitweb.php index 5a1d27d..ccfd5f6 100644 --- a/SourceGitweb/SourceGitweb.php +++ b/SourceGitweb/SourceGitweb.php @@ -246,13 +246,13 @@ if ( !SourceChangeset::exists( $p_repo->id, $t_commit['revision'] ) ) { # Parse for commit data - preg_match( '#author([^<>]*) <([^<>]*)>'. + preg_match( '#author(?:]*>)?([^<>]*)(?:)? *(?:]*>)?<([^<>]*)>(?:)?(?:<[^<>]*>\s*)*?'. ' \w*, (\d* \w* \d* \d*:\d*:\d*)#', $t_gitweb_data, $t_matches ); $t_commit['author'] = $t_matches[1]; $t_commit['author_email'] = $t_matches[2]; $t_commit['date'] = date( 'Y-m-d H:i:s', strtotime( $t_matches[3] ) ); - if( preg_match( '#committer([^<>]*) <([^<>]*)>#', $t_gitweb_data, $t_matches ) ) { + if( preg_match( '#committer(?:]*>)?([^<>]*)(?:)? *(?:]*>)?<([^<>]*)>(?:)?(?:<[^<>]*>\s*)*?#', $t_gitweb_data, $t_matches ) ) { $t_commit['committer'] = $t_matches[1]; $t_commit['committer_email'] = $t_matches[2]; }