about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-18 12:35:19 +0100
committerhut <hut@lavabit.com>2010-01-18 12:35:19 +0100
commit7b04e5073c30c8547baea9f7995bc3ac9913b952 (patch)
tree8a1e8049c3bc8b402d47837b11975e2f575989a9
parent80bdc005583adc47a12c28a3f850201958665f10 (diff)
downloadranger-7b04e5073c30c8547baea9f7995bc3ac9913b952.tar.gz
fsobject: recognize capital letter file extensions
-rw-r--r--TODO3
-rw-r--r--ranger/fsobject/fsobject.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/TODO b/TODO
index af36305f..a94db1ee 100644
--- a/TODO
+++ b/TODO
@@ -32,6 +32,7 @@ General
    ( ) #38  10/01/16  searching in pager
    ( ) #39  10/01/17  flushinput now always good
    ( ) #42  10/01/17  memorize directory for `` when using :cd
+   ( ) #43  10/01/18  internally treat the bookmarks ` and ' the same
 
 
 Bugs
@@ -44,7 +45,7 @@ Bugs
    (X) #26  10/01/06  :delete on symlinks of directories fails
    (X) #31  10/01/06  ^C breaks cd-after-exit by stopping sourced shell script
    ( ) #40  10/01/17  freeze with unavailable sshfs
-   ( ) #41  10/01/17  capital file extensions are not recognized
+   (X) #41  10/01/17  capital file extensions are not recognized
 
 
 Ideas
diff --git a/ranger/fsobject/fsobject.py b/ranger/fsobject/fsobject.py
index ea779c69..2c375a77 100644
--- a/ranger/fsobject/fsobject.py
+++ b/ranger/fsobject/fsobject.py
@@ -66,7 +66,7 @@ class FileSystemObject(MimeTypeAware, FileManagerAware):
 		self.realpath = realpath(path)
 
 		try:
-			self.extension = self.basename[self.basename.rindex('.') + 1:]
+			self.extension = self.basename[self.basename.rindex('.') + 1:].lower()
 		except ValueError:
 			self.extension = None