From 74ba2b855352ebfb56929a37ed9d2374132331db Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Wed, 3 Sep 2003 20:08:26 +0000 Subject: [PATCH] don't add wildcards only to full words and, or, not (part of swish-e quiery language) git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@122 13eb9ef6-21d5-0310-b721-a9d68796d827 --- WebPac.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebPac.pm b/WebPac.pm index 64c958b..b36fee0 100644 --- a/WebPac.pm +++ b/WebPac.pm @@ -108,7 +108,7 @@ sub show_results_list { $s.= ($s) ? "and " : ""; $s.="not " if ($1 eq "-"); $s.="$2* "; - } elsif (m/(and|or|not)/i) { + } elsif (m/^\s*(and|or|not)\s*$/i) { $s.="$_ "; # don't add * to words with less than x chars } elsif (length($_) <= $MIN_WILDCARD) { -- 2.20.1