From 6cb088cea794fc67941b4e174fe9ed80c8a45875 Mon Sep 17 00:00:00 2001 From: pcanterino <> Date: Fri, 25 Apr 2008 14:25:19 +0000 Subject: [PATCH 1/1] If "*" was supplied as a DOS wildcard, don't convert it to an ordinary regex, just check if it is "*" and return 1 if so. --- modules/Tool.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/Tool.pm b/modules/Tool.pm index 5ed1ba2..1cd2456 100644 --- a/modules/Tool.pm +++ b/modules/Tool.pm @@ -6,7 +6,7 @@ package Tool; # Some shared sub routines # # Author: Patrick Canterino -# Last modified: 2005-11-10 +# Last modified: 2008-04-25 # use strict; @@ -183,6 +183,8 @@ sub dos_wildcard_match($$) { my ($pattern,$string) = @_; + return 1 if($pattern eq '*'); + # The following part is stolen from File::DosGlob # escape regex metachars but not glob chars -- 2.34.1