diff options
Diffstat (limited to 'lib/VNDB/Handler')
-rw-r--r-- | lib/VNDB/Handler/Discussions.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/VNDB/Handler/Discussions.pm b/lib/VNDB/Handler/Discussions.pm index 79de9c40..8c18a92c 100644 --- a/lib/VNDB/Handler/Discussions.pm +++ b/lib/VNDB/Handler/Discussions.pm @@ -509,6 +509,9 @@ sub search { } else { # TODO: Allow or-matching too. But what syntax? (my $ts = $frm->{bq}) =~ y{+|&:*()="';!?$%^\\[]{}<>~` }{ }s; + $ts =~ s/ +/ /; + $ts =~ s/^ //; + $ts =~ s/ $//; $ts =~ s/ / & /g; $ts =~ s/(?:^| )-([^ ]+)/ !$1 /; ($l, $np) = $self->dbPostGet( |