lib/filemagic.rb in ruby-filemagic-0.2.1 vs lib/filemagic.rb in ruby-filemagic-0.2.2
- old
+ new
@@ -169,9 +169,9 @@
end
private
def simplify_mime(mime, simplified = true)
- simplified ? mime[/([\w\/-]+)/, 1].downcase : mime
+ simplified ? mime[/([.\w\/-]+)/, 1].downcase : mime
end
end