diff options
author | Yorhel <git@yorhel.nl> | 2015-09-07 14:05:42 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2015-09-07 14:05:42 +0200 |
commit | 1303a0d1e8b93f6d619dc8e451675f0cb84413a1 (patch) | |
tree | 0d3b40fc46ab41c3f0141cf11da6e65dd8b52f69 /lib/VNDB/Handler | |
parent | f51c7276fc65c2d1d46d3c8f915fb1e1412693e8 (diff) |
Handler::Discussions: Fix two bugs introduced in last commit
Diffstat (limited to 'lib/VNDB/Handler')
-rw-r--r-- | lib/VNDB/Handler/Discussions.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Discussions.pm b/lib/VNDB/Handler/Discussions.pm index 0362dce3..0b1e5254 100644 --- a/lib/VNDB/Handler/Discussions.pm +++ b/lib/VNDB/Handler/Discussions.pm @@ -415,7 +415,7 @@ sub search { # TODO: Allow or-matching too. But what syntax? (my $ts = $frm->{bq}) =~ y{+|&:*()="';!?$%^\\[]{}<>~` }{ }s; $ts =~ s/ / & /g; - $ts =~ s/(^| )-([^ ]+)/ !$1 /; + $ts =~ s/(?:^| )-([^ ]+)/ !$1 /; ($l, $np) = $self->dbPostGet( keys %boards ? ( type => [keys %boards] ) : (), search => $ts, |