summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Discussions.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VNDB/Handler/Discussions.pm')
-rw-r--r--lib/VNDB/Handler/Discussions.pm2
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,