Skip to content
Snippets Groups Projects
Commit 5aa6aefa authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

Allow multiple digits in GitHub version parts

parent 6424cbf0
No related branches found
No related tags found
No related merge requests found
......@@ -154,21 +154,21 @@ class Pathname
end
# github tarballs, like v1.2.3
%r[github.com/.*/(zip|tar)ball/v?((\d\.)+\d+)$].match to_s
%r[github.com/.*/(zip|tar)ball/v?((\d+\.)+\d+)$].match to_s
return $2 if $2
# eg. https://github.com/sam-github/libnet/tarball/libnet-1.1.4
%r[github.com/.*/(zip|tar)ball/.*-((\d\.)+\d+)$].match to_s
%r[github.com/.*/(zip|tar)ball/.*-((\d+\.)+\d+)$].match to_s
return $2 if $2
# dashed version
# eg. github.com/isaacs/npm/tarball/v0.2.5-1
%r[github.com/.*/(zip|tar)ball/v?((\d\.)+\d+-(\d+))$].match to_s
%r[github.com/.*/(zip|tar)ball/v?((\d+\.)+\d+-(\d+))$].match to_s
return $2 if $2
# underscore version
# eg. github.com/petdance/ack/tarball/1.93_02
%r[github.com/.*/(zip|tar)ball/v?((\d\.)+\d+_(\d+))$].match to_s
%r[github.com/.*/(zip|tar)ball/v?((\d+\.)+\d+_(\d+))$].match to_s
return $2 if $2
# eg. boost_1_39_0
......
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