diff options
author | hut <hut@lavabit.com> | 2013-02-25 05:09:31 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-02-25 05:09:31 +0100 |
commit | 0c7c036c679eb483ed152dfd72fcc60f87673c74 (patch) | |
tree | f1bf59e3d704a5724b688bce8e34aed1cf4795af /ranger/fsobject/directory.py | |
parent | a573bda31bcd172454b5ec79c6f8ae384ab900bc (diff) | |
download | ranger-0c7c036c679eb483ed152dfd72fcc60f87673c74.tar.gz |
fsobject.directory: turn self.filter into a regex
Diffstat (limited to 'ranger/fsobject/directory.py')
-rw-r--r-- | ranger/fsobject/directory.py | 2 |
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 |