about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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 474aa021..cc8dcaff 100755
--- a/ranger/ext/rifle.py
+++ b/ranger/ext/rifle.py
@@ -132,7 +132,7 @@ class Rifle(object):
 
 		if function == 'ext':
 			extension = os.path.basename(files[0]).rsplit('.', 1)[-1]
-			return bool(re.search('^' + argument + '$', extension))
+			return bool(re.search('^(' + argument + ')$', extension))
 		if function == 'name':
 			return bool(re.search(argument, os.path.basename(files[0])))
 		if function == 'path':