From 2833d0fcda9aaf12852c490b4808579337246524 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 21 Sep 2009 02:09:53 +0100 Subject: [PATCH] If entry string is first word of a target string, don't regard it as ambiguous. Fixes "nu" for "Nu island" --- yarrg/CommodsWeb.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarrg/CommodsWeb.pm b/yarrg/CommodsWeb.pm index 24ee53e..adcff34 100644 --- a/yarrg/CommodsWeb.pm +++ b/yarrg/CommodsWeb.pm @@ -160,7 +160,7 @@ sub dbw_lookup_string ($$$$$$$$) { # => ( $emsg, @dbresults ) $each =~ s/^\s*//; $each =~ s/\s*$//; $each =~ s/\s+/ /g; my %m; my $results; - my @pats= ("$each", "$each\%", "\%$each\%"); + my @pats= ("$each", "$each \%", "$each\%", "\%$each\%"); if ($abbrev_initials) { push @pats, join ' ', map { "$_%" } split //, $each; } -- 2.30.2