*** empty log message ***
authorgc <gc>
Sun, 6 Mar 2005 16:59:10 +0000 (16:59 +0000)
committergc <gc>
Sun, 6 Mar 2005 16:59:10 +0000 (16:59 +0000)
booh

diff --git a/booh b/booh
index 28ae4a56921478ebdf9eebdefffeb2aa6888f5df..17907e35aea6fcd23eefa9e6e1e0f97848aa84cc 100755 (executable)
--- a/booh
+++ b/booh
@@ -249,9 +249,9 @@ def find_captions(dir, images)
 end
 
 def entry2type(entry)
-    if entry =~ /\.(jpg|jpeg|jpe|gif|bmp|png)/i
+    if entry =~ /\.(jpg|jpeg|jpe|gif|bmp|png)$/i
         return 'image'
-    elsif entry =~ /\.(mov|avi|mpg|mpeg|mpe|wmv|asx)/i
+    elsif entry =~ /\.(mov|avi|mpg|mpeg|mpe|wmv|asx)$/i
         #- might consider using file magic later..
         return 'video'
     else