summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-06-23 02:07:50 +0200
committerhut <hut@lavabit.com>2012-06-23 02:07:50 +0200
commite72815692e7fb66a452a930646c1fd31aafefa9e (patch)
tree6f0104fe685088886d682a2a4bb3d3bf15c2c605 /ranger
parentddcaf80873d9a23eda33f99461fc76498867568b (diff)
downloadranger-e72815692e7fb66a452a930646c1fd31aafefa9e.tar.gz
ext.rifle: make matching function "ext" case insensitive
Diffstat (limited to 'ranger')
-rwxr-xr-xranger/ext/rifle.py2
1 files changed, 1 insertions, 1 deletions
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])))