X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FSpot.pm;h=9019bb5b92dbfb6f8a0f0729de336d769918f999;hb=7f38719941b040ae64358fece992179c5938d609;hp=f6b14564ff98cc86ea2b537830274e453d1f7ff5;hpb=0c963c43ab1cc4028eb79e366d5c0cfa4575b057;p=spider.git diff --git a/perl/Spot.pm b/perl/Spot.pm index f6b14564..9019bb5b 100644 --- a/perl/Spot.pm +++ b/perl/Spot.pm @@ -403,7 +403,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 =~ /^C?Q/ || $text =~ /^\d+$/ || $text =~ /\s/) { + unless ($text =~ /^C?Q/ || $text =~ /^[\d\W]+$/) { my @try = Prefix::cty_data($text); $text = "" if $cty == $try[0]; }