]> git.donarmstrong.com Git - infobot.git/commitdiff
fallback on * properly
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sun, 3 Dec 2000 13:51:25 +0000 (13:51 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sun, 3 Dec 2000 13:51:25 +0000 (13:51 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@180 c11ca15a-4712-0410-83d8-924469b57eb5

src/Modules/Debian.pl

index e4632975a662199a344dc377f1f545da4b785cfd..8fd7667c60a5d6c07afcc109e13caf2a6bb878c4 100644 (file)
@@ -170,7 +170,12 @@ sub searchContents {
 
     $query =~ s/\\([\^\$])/$1/g;       # hrm?
     $query =~ s/^\s+|\s+$//g;
-    $query =~ s/\*/\\S*/g;             # does it even work?
+    ### EGREP DOES NOT SUPPORT THIS TYPE OF EXPRESSION!!!
+###    $query =~ s/\*/\\S*/g;
+    if ($query =~ /\*/) {
+       &main::msg($main::who, "We don't support * yet.");
+       return;
+    }
 
     if (!&main::validExec($query)) {
        &main::msg($main::who, "search string looks fuzzy.");