Pathname: support .tar.Z extension

This commit is contained in:
Adam Vandenberg 2012-02-08 21:08:18 -08:00
parent 0eb1cadee0
commit c42a6b6802

View File

@ -64,7 +64,7 @@ class Pathname
# extended to support common double extensions
def extname
/(\.(tar|cpio)\.(gz|bz2|xz))$/.match to_s
/(\.(tar|cpio)\.(gz|bz2|xz|Z))$/.match to_s
return $1 if $1
return File.extname(to_s)
end