Sign in
vanadium
/
third_party
/
6a0c4f473ff90b84bfb80f67adcb911ca3a4784b
/
.
/
csrc
/
node-v0.10.24
/
deps
/
npm
/
node_modules
/
github-url-from-username-repo
/
index.js
blob: 8af2c4f83195af2226310221b794863c7b0bb8b1 [
file
] [
log
] [
blame
]
module
.
exports
=
getUrl
function
getUrl
(
r
)
{
if
(!
r
)
return
if
(
/^[\w-]+\/[\w-]+$/
.
test
(
r
))
return
"git://github.com/"
+
r
else
return
null
}