summary refs log tree commit diff stats
diff options
context:
space:
mode:
authoruser062 <48716714+user062@users.noreply.github.com>2019-08-03 18:27:24 +0000
committerGitHub <noreply@github.com>2019-08-03 18:27:24 +0000
commitffa83808fcec410bedef334a613e28b7f3236b4f (patch)
tree3d74973fecc3569a8d0b9a5d9d0d0186b80d224d
parent5b0b73fc182a582361dff754d3ecafa8a16e3292 (diff)
downloadranger-ffa83808fcec410bedef334a613e28b7f3236b4f.tar.gz
Update settings.py
-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