- make "." something which can appear in a search string
authorAndreas Scherbaum <andreas@scherbaum.biz>
Wed, 17 Oct 2012 12:14:41 +0000 (14:14 +0200)
committerAndreas Scherbaum <andreas@scherbaum.biz>
Wed, 17 Oct 2012 12:14:41 +0000 (14:14 +0200)
docbot.pl

index e71c60ba661986066368515dcd2e8ac086a22cd1..a542e5aaee707d7985a2a0c9a6fe295066e8afe4 100755 (executable)
--- a/docbot.pl
+++ b/docbot.pl
@@ -2872,7 +2872,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;