X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FSpot.pm;h=76d6e0b63191036f733d168e08636447e684f0ea;hb=4f9c3eb17f095263fba06f81a98b65999008f50e;hp=5224f11f8bf261007e939299b27138c0a2017526;hpb=216faa551997c3eaf1a7ccb9d512efb8d50df118;p=spider.git diff --git a/perl/Spot.pm b/perl/Spot.pm index 5224f11f..76d6e0b6 100644 --- a/perl/Spot.pm +++ b/perl/Spot.pm @@ -404,9 +404,8 @@ sub dup my $otext = $text; $text = Encode::encode("iso-8859-1", $text) if $main::can_encode && Encode::is_utf8($text, 1); $text =~ s/^\+\w+\s*//; # remove leading LoTW callsign - $text = pack("C*", map {$_ & 127} unpack("C*", $text)); $text =~ s/\s{2,}[\dA-Z]?[A-Z]\d?$// if length $text > 24; - $text =~ s/[^\w]//g; + $text =~ s/[\W\x00-\x2F\x7B-\xFF]//g; # tautology, just to make quite sure! $text = substr($text, 0, $duplth) if length $text > $duplth; my $ldupkey = "X$freq|$call|$by|$text"; my $t = DXDupe::find($ldupkey);