]> git.saurik.com Git - wxWidgets.git/commitdiff
only match the regex at the end of the string
authorRobin Dunn <robin@alldunn.com>
Thu, 7 Aug 2003 15:08:00 +0000 (15:08 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 7 Aug 2003 15:08:00 +0000 (15:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wxPython/lib/imagebrowser.py

index b1a9e7b13ddaa31bf6133788fb237adaa5f42212..f07cfc388417f89257a4b01fea5bdefc881b73d0 100644 (file)
@@ -202,6 +202,7 @@ class ImageDialog(wxDialog):
             all_files = []
             for ftypes in self.fl_types[1:-1]:    # get list of all available image types
                 filter = self.fl_ext_types[ftypes]
+                print "filter = ", filter
                 self.fl_val = FindFiles(self, self.set_dir, filter)
                 all_files = all_files + self.fl_val.files   # add to list of files
             self.fl_list = all_files
@@ -305,8 +306,7 @@ class FindFiles:
                 f = f + "."
             else:
                 f = f + ch
-
-        return re.compile(f)
+        return re.compile(f+'$')
 
     def StripExt(self, file_nm):
         fl_fld = os.path.splitext(file_nm)