added new version of wpxloc.raw with missing entries
[spider.git] / perl / Spot.pm
index f6b14564ff98cc86ea2b537830274e453d1f7ff5..9019bb5b92dbfb6f8a0f0729de336d769918f999 100644 (file)
@@ -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];
                }