followup : auto_truncation 3287252c0

truncated words bore a double * which would create an error

Conflicts solved :
	C4/Search.pm
This commit is contained in:
Henri-Damien LAURENT 2009-12-18 12:24:00 +01:00
parent f6f80e1b8b
commit f0aee34d3f
1 changed files with 7 additions and 1 deletions

View File

@ -1139,7 +1139,13 @@ sub buildQuery {
}
if ($auto_truncation){
$operand=~join(" ",map{ "$_*" }split (/\s+/,$operand));
unless ( $index =~ /(st-|phr|ext)/ ) {
#FIXME only valid with LTR scripts
$operand=join(" ",map{
(index($_,"*")>0?"$_":"$_*")
}split (/\s+/,$operand));
warn $operand if $DEBUG;
}
}
# Detect Truncation