summary refs log tree commit diff stats
path: root/ranger/fsobject/directory.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-25 05:09:31 +0100
committerhut <hut@lavabit.com>2013-02-25 05:09:31 +0100
commit0c7c036c679eb483ed152dfd72fcc60f87673c74 (patch)
treef1bf59e3d704a5724b688bce8e34aed1cf4795af /ranger/fsobject/directory.py
parenta573bda31bcd172454b5ec79c6f8ae384ab900bc (diff)
downloadranger-0c7c036c679eb483ed152dfd72fcc60f87673c74.tar.gz
fsobject.directory: turn self.filter into a regex
Diffstat (limited to 'ranger/fsobject/directory.py')
-rw-r--r--ranger/fsobject/directory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py
index 546fc6d0..3e5e4f84 100644
--- a/ranger/fsobject/directory.py
+++ b/ranger/fsobject/directory.py
@@ -39,7 +39,7 @@ def sort_naturally_icase(path):
 def accept_file(fname, directory, hidden_filter, name_filter):
     if hidden_filter and hidden_filter.search(fname):
         return False
-    if name_filter and name_filter not in fname:
+    if name_filter and not name_filter.search(fname):
         return False
     if directory.temporary_filter and not directory.temporary_filter.search(fname):
         return False