Commit 099b7966 authored by Fabio Pelosin's avatar Fabio Pelosin

[fix] Support for dashes in GitHub repo and author

parent bdebd670
......@@ -64,7 +64,7 @@ module Pod
end
def tarball_url_for(id)
original_url, username, reponame = *(url.match(/[:\/](\w+)\/(\w+).git/).to_a)
original_url, username, reponame = *(url.match(/[:\/]([\w\-]+)\/([\w\-]+)\.git/).to_a)
"https://github.com/#{username}/#{reponame}/tarball/#{id}"
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment