From: Andreas Scherbaum Date: Fri, 17 Aug 2012 13:17:07 +0000 (+0200) Subject: - fix search, missed the underscore X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=8797552b634a91213485e79c404cfa30712fedfc;p=docbot.git - fix search, missed the underscore --- diff --git a/docbot.pl b/docbot.pl index 96ebc47..1d75a28 100755 --- a/docbot.pl +++ b/docbot.pl @@ -2832,7 +2832,7 @@ sub handle_command_search { } - if ($string !~ /^[a-zA-Z0-9 ]+$/) { + if ($string !~ /^[a-zA-Z0-9 _\-]+$/) { my $answer = "Invalid search"; $answer = translate_text_for_channel($channel, 'invalid_search', $answer); return $answer;