From e3a3fdc83fe14dcb48bdb699385af49044af6632 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 7 Aug 2003 15:08:00 +0000 Subject: [PATCH] only match the regex at the end of the string git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wxPython/lib/imagebrowser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wxPython/wxPython/lib/imagebrowser.py b/wxPython/wxPython/lib/imagebrowser.py index b1a9e7b13d..3505e275aa 100644 --- a/wxPython/wxPython/lib/imagebrowser.py +++ b/wxPython/wxPython/lib/imagebrowser.py @@ -305,8 +305,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)