You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

9 lines
157 B

module.exports = getUrl
function getUrl (r) {
if (!r) return
if (/^[\w-]+\/[\w-]+$/.test(r))
return "git://github.com/" + r
else
return null
}