]> git.p6c8.net - devedit.git/blobdiff - modules/Tool.pm
If "*" was supplied as a DOS wildcard, don't convert it to an ordinary regex,
[devedit.git] / 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