Bug 3955: Fixes leading space error in search.
Leading spaces in a search term were causing an error to be thrown in a join operator when auto-truncations is turned on. This patch removes the leading spaces.
This commit is contained in:
parent
c505daad7d
commit
898b78535b
1 changed files with 4 additions and 2 deletions
|
@ -932,8 +932,10 @@ sub buildQuery {
|
|||
}
|
||||
|
||||
if ($auto_truncation){
|
||||
$operand=~join(" ",map{ "$_*" }split (/\s+/,$operand));
|
||||
}
|
||||
# join throws an error if there is a leading space
|
||||
$operand =~ s/^\s+//;
|
||||
$operand=~join(" ",map{ "$_*" }split (/\s+/,$operand));
|
||||
}
|
||||
|
||||
# Detect Truncation
|
||||
my $truncated_operand;
|
||||
|
|
Loading…
Reference in a new issue