X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fdx.pl;h=b2257c49b48ac04e412be931cc731f459e84174b;hb=8911cca587310bbc7353b70fc1409168d3be2a8a;hp=380328ee9486eeb76ab51b6246cac31e3846bdff;hpb=1efbd7eadcddd2c5552e6791954bf81b7c272aa0;p=spider.git diff --git a/cmd/show/dx.pl b/cmd/show/dx.pl index 380328ee..b2257c49 100644 --- a/cmd/show/dx.pl +++ b/cmd/show/dx.pl @@ -101,7 +101,7 @@ if (@freq) { for ($i = 0; $i < @freq; $i += 2) { $expr .= "(\$f0 >= $freq[$i] && \$f0 <= $freq[$i+1]) ||"; my $r = Spot::ftor($freq[$i], $freq[$i+1]); - $hint .= "m{$r} ||" if $r; + $hint .= "m{$r\\.} ||" if $r; } chop $expr; chop $expr; chop $hint; chop $hint; @@ -121,6 +121,7 @@ if ($info) { # any spotter if ($spotter) { $expr .= " && " if $expr; + $spotter .= '*' unless $spotter =~ /[\*\?\[]/o; $spotter = shellregex($spotter); $expr .= "\$f4 =~ m{\U$spotter}"; $hint .= " && " if $hint;