projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix $by in dups
[spider.git]
/
perl
/
Spot.pm
diff --git
a/perl/Spot.pm
b/perl/Spot.pm
index 99f0c83ed743934216698b7149ddff59b1647240..112fcffed0565c8a9cd4010f4ab05ac52deb5972 100644
(file)
--- a/
perl/Spot.pm
+++ b/
perl/Spot.pm
@@
-328,6
+328,9
@@
sub dup
$d = int ($d / 60);
$d *= 60;
$d = int ($d / 60);
$d *= 60;
+ # remove SSID or area
+ $by =~ s|[-/]\d+$||;
+
$freq = sprintf "%.1f", $freq; # normalise frequency
$call = substr($call, 0, $maxcalllth) if length $call > $maxcalllth;
$freq = sprintf "%.1f", $freq; # normalise frequency
$call = substr($call, 0, $maxcalllth) if length $call > $maxcalllth;
@@
-335,7
+338,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) {
$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];
}
my @try = Prefix::cty_data($text);
$text = "" if $cty == $try[0];
}