diff options
author | nfnty <git@nfnty.se> | 2017-01-07 02:45:05 +0100 |
---|---|---|
committer | nfnty <git@nfnty.se> | 2017-01-07 02:45:05 +0100 |
commit | c38c7f2a11eeaa882e2253a7fcabd62b3fadb8fc (patch) | |
tree | 4aa293e78300a1c48dc9b8c1e2d77738de2fed27 | |
parent | bfaeb3fbadb5152a98b95199403fb1563d730453 (diff) | |
download | ranger-c38c7f2a11eeaa882e2253a7fcabd62b3fadb8fc.tar.gz |
config/commands.py: scout: Do not use `re.LOCALE`
Very unreliable and Python 3.6 only supports the flag for bytes patterns Fixes #664 Fixes #752
-rwxr-xr-x | ranger/config/commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py index 18efbfc1..a384f427 100755 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -1251,7 +1251,7 @@ class scout(Command): regex = "^(?:(?!%s).)*$" % regex # Compile Regular Expression - options = re.LOCALE | re.UNICODE + options = re.UNICODE if self.IGNORE_CASE in flags or self.SMART_CASE in flags and \ pattern.islower(): options |= re.IGNORECASE |