From: Steinar H. Gunderson Date: Tue, 22 Mar 2016 17:05:10 +0000 (+0100) Subject: Remove first names from PGNs. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=85b065a270537148c7135f239d07dcb83020ec4f Remove first names from PGNs. --- diff --git a/remoteglot.pl b/remoteglot.pl index b466d4d..b75d85e 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -291,7 +291,11 @@ sub handle_pgn { } $pgn->parse_game({ save_comments => 'yes' }); - my $pos = Position->start_pos($pgn->white, $pgn->black); + my $white = $pgn->white; + my $black = $pgn->black; + $white =~ s/,.*//; # Remove first name. + $black =~ s/,.*//; # Remove first name. + my $pos = Position->start_pos($white, $black); my $moves = $pgn->moves; my @uci_moves = (); my @repretty_moves = ();