diff --git a/SourceSFSVN/SourceSFSVN.php b/SourceSFSVN/SourceSFSVN.php index b354bb2..593f2e3 100644 --- a/SourceSFSVN/SourceSFSVN.php +++ b/SourceSFSVN/SourceSFSVN.php @@ -293,7 +293,7 @@ if ( strlen( $t_line ) == 0 ) { $t_state = 3; } else { - if ( preg_match( '/^\s+([a-zA-Z])\s+([\S]+)/', $t_line, $t_matches ) ) { + if ( preg_match( '/^\s+([a-zA-Z])\s+(.+)/', $t_line, $t_matches ) ) { switch( $t_matches[1] ) { case 'A': $t_action = 'add'; break; case 'D': $t_action = 'rm'; break; @@ -301,7 +301,7 @@ default: $t_action = $t_matches[1]; } - $t_file = new SourceFile( $t_changeset->id, '', $t_matches[2], $t_action ); + $t_file = new SourceFile( $t_changeset->id, '', trim( $t_matches[2] ), $t_action ); $t_changeset->files[] = $t_file; # Branch-checking diff --git a/SourceWebSVN/SourceWebSVN.php b/SourceWebSVN/SourceWebSVN.php index dda3f7b..614e074 100644 --- a/SourceWebSVN/SourceWebSVN.php +++ b/SourceWebSVN/SourceWebSVN.php @@ -315,7 +315,7 @@ if ( strlen( $t_line ) == 0 ) { $t_state = 3; } else { - if ( preg_match( '/^\s+([a-zA-Z])\s+([\S]+)/', $t_line, $t_matches ) ) { + if ( preg_match( '/^\s+([a-zA-Z])\s+(.+)/', $t_line, $t_matches ) ) { switch( $t_matches[1] ) { case 'A': $t_action = 'add'; break; case 'D': $t_action = 'rm'; break; @@ -323,7 +323,7 @@ default: $t_action = $t_matches[1]; } - $t_file = new SourceFile( $t_changeset->id, '', $t_matches[2], $t_action ); + $t_file = new SourceFile( $t_changeset->id, '', trim( $t_matches[2] ), $t_action ); $t_changeset->files[] = $t_file; # Branch-checking