Skip to content
Snippets Groups Projects
Commit 028d155e authored by Xu Cheng's avatar Xu Cheng
Browse files

Pathname#version: only parse version from file basename


i.e. Ignoring the file's directory for version parsing.

Closes Homebrew/homebrew#50568.

Signed-off-by: default avatarXu Cheng <xucheng@me.com>
parent ebfd0968
No related branches found
No related tags found
No related merge requests found
......@@ -239,7 +239,7 @@ class Pathname
# @private
def version
require "version"
Version.parse(self)
Version.parse(basename)
end
# @private
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment