fix command searching
[spider.git] / perl / Spot.pm
index 7f9139cf8c9c0def2f5f4160cca7a202f0de9781..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;