match .gz man page files
Emacs cask has compressed man pages and they should be supported.
This commit is contained in:
parent
6e7857cc4e
commit
06d655bf50
@ -12,7 +12,7 @@ module Cask
|
|||||||
attr_reader :section
|
attr_reader :section
|
||||||
|
|
||||||
def self.from_args(cask, source)
|
def self.from_args(cask, source)
|
||||||
section = source.to_s[/\.([1-8]|n|l)$/, 1]
|
section = source.to_s[/\.([1-8]|n|l)(?:\.gz)?$/, 1]
|
||||||
|
|
||||||
raise CaskInvalidError, "'#{source}' is not a valid man page name" unless section
|
raise CaskInvalidError, "'#{source}' is not a valid man page name" unless section
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user