From: Andreas Scherbaum Date: Wed, 17 Oct 2012 12:14:41 +0000 (+0200) Subject: - make "." something which can appear in a search string X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=d4f133485ab8a9eab50adce0de9a4410421ea7d2;p=docbot.git - make "." something which can appear in a search string --- diff --git a/docbot.pl b/docbot.pl index e71c60b..a542e5a 100755 --- 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;