lib/io_streams/path.rb in iostreams-1.5.1 vs lib/io_streams/path.rb in iostreams-1.6.0
- old
+ new
@@ -151,10 +151,10 @@
end
# Returns [true|false] whether the file is compressed based on its file extensions.
def compressed?
# TODO: Look at streams?
- !(path =~ /\.(zip|gz|gzip|xls.|)\z/i).nil?
+ !(path =~ /\.(zip|gz|gzip|xlsx|xlsm|bz2)\z/i).nil?
end
# Returns [true|false] whether the file is encrypted based on its file extensions.
def encrypted?
# TODO: Look at streams?