parent
f729a0df44
commit
11f382705c
@ -214,8 +214,10 @@ class Pathname
|
|||||||
return $1 if $1
|
return $1 if $1
|
||||||
|
|
||||||
# eg. foobar4.5.1
|
# eg. foobar4.5.1
|
||||||
/((\d+\.)*\d+)$/.match stem
|
unless /^erlang-/.match basename
|
||||||
return $1 if $1
|
/((\d+\.)*\d+)$/.match stem
|
||||||
|
return $1 if $1
|
||||||
|
end
|
||||||
|
|
||||||
# eg foobar-4.5.0-bin
|
# eg foobar-4.5.0-bin
|
||||||
/-((\d+\.)+\d+[abc]?)[-._](bin|dist|stable|src|sources?)$/.match stem
|
/-((\d+\.)+\d+[abc]?)[-._](bin|dist|stable|src|sources?)$/.match stem
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user