create: path.version may be nil
Fixes https://github.com/Homebrew/homebrew-core/issues/3067.
This commit is contained in:
parent
092d4712a1
commit
b6772c1fde
@ -110,8 +110,7 @@ class FormulaCreator
|
|||||||
when %r{github\.com/\S+/(\S+)/archive/}
|
when %r{github\.com/\S+/(\S+)/archive/}
|
||||||
@name = $1
|
@name = $1
|
||||||
else
|
else
|
||||||
/(.*?)[-_.]?#{Regexp.escape(path.version)}/.match path.basename
|
@name = path.basename.to_s[/(.*?)[-_.]?#{Regexp.escape(path.version.to_s)}/, 1]
|
||||||
@name = $1
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
update_path
|
update_path
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user