X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FSpot.pm;h=9019bb5b92dbfb6f8a0f0729de336d769918f999;hb=66d98a2de271ef4a2702189e1d4284fe9fce5119;hp=f6b14564ff98cc86ea2b537830274e453d1f7ff5;hpb=dc397f24d7242cf3ccdb87a3e1467963c58fa2f9;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]; }