]> git.p6c8.net - devedit.git/commitdiff
If "*" was supplied as a DOS wildcard, don't convert it to an ordinary regex,
authorpcanterino <>
Fri, 25 Apr 2008 14:25:19 +0000 (14:25 +0000)
committerpcanterino <>
Fri, 25 Apr 2008 14:25:19 +0000 (14:25 +0000)
just check if it is "*" and return 1 if so.

modules/Tool.pm

index 5ed1ba238bf170786ecd099d33f3d65e8b7d7aaf..1cd2456f54fa8750bf688760f80bed00c3f776b6 100644 (file)
@@ -6,7 +6,7 @@ package Tool;
 # Some shared sub routines
 #
 # Author:        Patrick Canterino <patrick@patshaping.de>
-# 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

patrick-canterino.de