summaryrefslogtreecommitdiffstats
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 cd389aef..d15f8b3b 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(re.compile(path))
+ regex = re.compile(re.escape(path))
except re.error: # Bad regular expression
return
self._localregexes[path] = regex