]> dxcluster.org Git - spider.git/commitdiff
check for Q
authorminima <minima>
Wed, 16 Mar 2005 23:15:23 +0000 (23:15 +0000)
committerminima <minima>
Wed, 16 Mar 2005 23:15:23 +0000 (23:15 +0000)
perl/Spot.pm

index 8f20a99952e8d28b47ce8179d9af32e9f42a968b..7f9139cf8c9c0def2f5f4160cca7a202f0de9781 100644 (file)
@@ -370,7 +370,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 =~ /^CQ/ || $text =~ /^\d+$/) {
+               unless ($text =~ /^C?Q/ || $text =~ /^\d+$/) {
                        my @try = Prefix::cty_data($text);
                        $text = "" if $cty == $try[0];
                }