增加应用软件包的后缀格式

This commit is contained in:
wanglinchun 2014-04-23 16:30:23 +08:00
parent c272d7a8c7
commit 3608cecca5
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ class Attachment < ActiveRecord::Base
end
def pack?
!!(self.filename =~ /\.(zip|rar|tar|gz|exe)$/i)
!!(self.filename =~ /\.(zip|rar|tar|gz|exe|jar|7z|iso)$/i)
end
def thumbnailable?