From b2af69f13cb38758744194184285b68187c50ca9 Mon Sep 17 00:00:00 2001 From: dms Date: Sun, 3 Dec 2000 13:51:25 +0000 Subject: [PATCH] fallback on * properly git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@180 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/Modules/Debian.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Modules/Debian.pl b/src/Modules/Debian.pl index e463297..8fd7667 100644 --- a/src/Modules/Debian.pl +++ b/src/Modules/Debian.pl @@ -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."); -- 2.39.2