From: Michael Andreen Date: Mon, 4 May 2009 08:52:22 +0000 (+0200) Subject: Bugfix, accept empty gal name X-Git-Url: https://ruin.nu/git/?a=commitdiff_plain;h=2d521d7238f8216e6306bd09f412495dbcfcd524;hp=5a218ad5b59a98413bc4be4c828ebd7ef28e8427;p=ndwebbie.git Bugfix, accept empty gal name --- diff --git a/scripts/parsegalaxies.pl b/scripts/parsegalaxies.pl index 95194be..561b244 100755 --- a/scripts/parsegalaxies.pl +++ b/scripts/parsegalaxies.pl @@ -47,7 +47,7 @@ my @galaxies; if (@_ = $dumps->fetchrow){ $_ = $_[0]; $hour = (gmtime($_[1]))[2]; - while (m/(\d+)\t(\d+)\t\"(?:.+)\"\t(\d+)\t(\d+)\t(\d+)\t(\d+)/g){ + while (m/(\d+)\t(\d+)\t\"(?:.*)\"\t(\d+)\t(\d+)\t(\d+)\t(\d+)/g){ push @galaxies,[$tick,$1,$2,$3,$4,$5,$6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]; } }