X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=remoteglot.pl;h=63cdac205d89a57e036e12b59d604212e0cbfbba;hp=b546589e5c03bfb56e9fd69caa3b6a13a996b075;hb=01b91aa7e25d94d3cc26db79271d8e6f05a60462;hpb=a4f594893e37a18dfc85ff92061f1bd664dc4887 diff --git a/remoteglot.pl b/remoteglot.pl index b546589..63cdac2 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -983,6 +983,9 @@ sub extract_clock { if (exists($tags->{'WhiteClock'}) && exists($tags->{'BlackClock'})) { $pos->{'white_clock'} = $tags->{'WhiteClock'}; $pos->{'black_clock'} = $tags->{'BlackClock'}; + + $pos->{'white_clock'} =~ s/\b(\d)\b/0$1/g; + $pos->{'black_clock'} =~ s/\b(\d)\b/0$1/g; return; }