From e72815692e7fb66a452a930646c1fd31aafefa9e Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 23 Jun 2012 02:07:50 +0200 Subject: ext.rifle: make matching function "ext" case insensitive --- ranger/ext/rifle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py index debac786..e27c8da3 100755 --- a/ranger/ext/rifle.py +++ b/ranger/ext/rifle.py @@ -165,7 +165,7 @@ class Rifle(object): argument = rule[1] if len(rule) > 1 else '' if function == 'ext': - extension = os.path.basename(files[0]).rsplit('.', 1)[-1] + extension = os.path.basename(files[0]).rsplit('.', 1)[-1].lower() return bool(re.search('^(' + argument + ')$', extension)) elif function == 'name': return bool(re.search(argument, os.path.basename(files[0]))) -- cgit 1.4.1-2-gfad0