fixed the syntax error
[spider.git] / perl / Spot.pm
index e06c6cee156960d632781c44caed8b75385693c4..e2b5c7eff3cd889f9780b153fa02d0049f10950e 100644 (file)
@@ -215,8 +215,8 @@ sub dup
        chomp $text;
        $text = substr($text, 0, $duplth) if length $text > $duplth; 
        unpad($text);
-       $text =~ s/[^ a-zA-Z0-9]//g;
-       my $dupkey = "X$freq|$call|$d|$text";
+       $text =~ s/[^a-zA-Z0-9]//g;
+       my $dupkey = "X$freq|$call|$d|\L$text";
        return DXDupe::check($dupkey, $main::systime+$dupage);
 }