Pathname: support .tar.Z extension
This commit is contained in:
parent
0eb1cadee0
commit
c42a6b6802
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user