summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/container/settings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/container/settings.py b/ranger/container/settings.py
index 478f6124..cd389aef 100644
--- a/ranger/container/settings.py
+++ b/ranger/container/settings.py
@@ -276,7 +276,7 @@ class Settings(SignalDispatcher, FileManagerAware):
         if path:
             if path not in self._localsettings:
                 try:
-                    regex = re.compile(path)
+                    regex = re.compile(re.compile(path))
                 except re.error:  # Bad regular expression
                     return
                 self._localregexes[path] = regex