From: Michael Andreen Date: Wed, 9 Apr 2008 20:50:40 +0000 (+0200) Subject: Don't catch bad planet names X-Git-Url: https://ruin.nu/git/?a=commitdiff_plain;h=9576a0ab8b41e013a7c184233f3bc28496647963;hp=28e6b03ac62d7f50b8b520dada33665d9ac90cbb;p=ndwebbie.git Don't catch bad planet names --- diff --git a/scripts/scans.pl b/scripts/scans.pl index 0156079..654859a 100755 --- a/scripts/scans.pl +++ b/scripts/scans.pl @@ -106,7 +106,7 @@ while (my $scan = $newscans->fetchrow_hashref){ } if ($type eq 'Planet'){ $file =~ s/(\d),(\d)/$1$2/g; - while($file =~ m/(Metal|Crystal|Eonium)\D+(\d+)\D+(\d+)/g){ + while($file =~ m/"left">(Metal|Crystal|Eonium)\D+(\d+)\D+(\d+)/g){ $addpdata->execute($planet,$tick,$scan->{id} ,'roid',$1, $2) or die $dbh->errstr; $addpdata->execute($planet,$tick,$scan->{id}