diff options
-rw-r--r-- | ranger/container/settings.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/container/settings.py b/ranger/container/settings.py index 478f6124..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(path) + regex = re.compile(re.escape(path)) except re.error: # Bad regular expression return self._localregexes[path] = regex |