*** empty log message ***
[booh] / lib / booh / booh-lib.rb
index 464fe77dae1be01217613e667b7e7003d5c254ac..8eda1e45a967d6049b3da8f7fba6faf7214255bf 100644 (file)
@@ -115,9 +115,9 @@ module Booh
     end
 
     def entry2type(entry)
-        if entry =~ /\.(jpg|jpeg|jpe|gif|bmp|png)$/i && entry !~ /['"\(\)\[\]]/
+        if entry =~ /\.(jpg|jpeg|jpe|gif|bmp|png)$/i && entry !~ /['"\[\]]/
             return 'image'
-        elsif entry =~ /\.(mov|avi|mpg|mpeg|mpe|wmv|asx)$/i && entry !~ /['"\(\)\[\]]/
+        elsif entry =~ /\.(mov|avi|mpg|mpeg|mpe|wmv|asx)$/i && entry !~ /['"\[\]]/
             #- might consider using file magic later..
             return 'video'
         else