fix command searching
[spider.git] / perl / Spot.pm
index 8f20a99952e8d28b47ce8179d9af32e9f42a968b..306bc282582e2b5b634df974f573848768c58f43 100644 (file)
@@ -361,7 +361,7 @@ sub dup
        $d = int ($d / 60);
        $d *= 60;
 
-       $by =~ s/-\d+$//g;
+       $by =~ s|[-/]\d+$||;
        
        $freq = sprintf "%.1f", $freq;       # normalise frequency
        $call = substr($call, 0, $maxcalllth) if length $call > $maxcalllth;
@@ -370,7 +370,7 @@ sub dup
        $text =~ s/\%([0-9A-F][0-9A-F])/chr(hex($1))/eg;
        $text = uc unpad($text);
        if ($cty && $text && length $text <= 4) {
-               unless ($text =~ /^CQ/ || $text =~ /^\d+$/) {
+               unless ($text =~ /^C?Q/ || $text =~ /^\d+$/) {
                        my @try = Prefix::cty_data($text);
                        $text = "" if $cty == $try[0];
                }