aboutsummaryrefslogtreecommitdiffstats
path: root/lib/LXRng/Web.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/LXRng/Web.pm')
-rw-r--r--lib/LXRng/Web.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/LXRng/Web.pm b/lib/LXRng/Web.pm
index a592b9a..ba7943f 100644
--- a/lib/LXRng/Web.pm
+++ b/lib/LXRng/Web.pm
@@ -435,7 +435,8 @@ sub search {
$template_args{'code_res'} = {'query' => $find,
'idents' => \@cooked};
}
- if ($type eq 'ident') {
+ if ($type eq 'ident' and $find =~ /(\d+)/) {
+ $find = $1;
my $usage = $context->config->{'usage'};
my ($symname, $symid, $ident, $refs) =
$index->get_identifier_info($usage, $find, $rel_id);