- fix search, missed the underscore
authorAndreas Scherbaum <andreas@scherbaum.biz>
Fri, 17 Aug 2012 13:17:07 +0000 (15:17 +0200)
committerAndreas Scherbaum <andreas@scherbaum.biz>
Fri, 17 Aug 2012 13:17:07 +0000 (15:17 +0200)
docbot.pl

index 96ebc47182de32beeedff1d4a1c23f80fd35c206..1d75a28b820a4970d616a5cf8d53100fe5533e03 100755 (executable)
--- 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;