[Rt-commit] r15753 - in rt/3.8/trunk: .
elacour at bestpractical.com
elacour at bestpractical.com
Thu Sep 4 05:38:45 EDT 2008
Author: elacour
Date: Thu Sep 4 05:38:43 2008
New Revision: 15753
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/lib/RT/Search/Googleish.pm
Log:
r10590 at datura: manu | 2008-09-04 11:38:13 +0200
Trim leading or trailing whitespace in for simple search.
Modified: rt/3.8/trunk/lib/RT/Search/Googleish.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Search/Googleish.pm (original)
+++ rt/3.8/trunk/lib/RT/Search/Googleish.pm Thu Sep 4 05:38:43 2008
@@ -91,6 +91,8 @@
sub QueryToSQL {
my $self = shift;
my $query = shift || $self->Argument;
+ # Trim leading or trailing whitespace
+ $query =~ s/^\s+(.*)\s+$/$1/g;
my @keywords = split /\s+/, $query;
my (
@tql_clauses, @owner_clauses, @queue_clauses,
More information about the Rt-commit
mailing list