From ffa83808fcec410bedef334a613e28b7f3236b4f Mon Sep 17 00:00:00 2001 From: user062 <48716714+user062@users.noreply.github.com> Date: Sat, 3 Aug 2019 18:27:24 +0000 Subject: Update settings.py --- ranger/container/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1-2-gfad0