github-url-from-username-repo
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -6,5 +6,5 @@ module.exports = getUrl | ||
if (/^[\w-]+\/[\w\.-]+$/.test(r)) | ||
return "git://github.com/" + r | ||
return "https://github.com/" + r | ||
else | ||
return null | ||
} |
{ | ||
"name": "github-url-from-username-repo", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Create urls from username/repo", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,3 +7,3 @@ var assert = require("assert") | ||
var url = getUrl("visionmedia/express") | ||
assert.equal("git://github.com/visionmedia/express", url) | ||
assert.equal("https://github.com/visionmedia/express", url) | ||
}) | ||
@@ -23,3 +23,3 @@ | ||
var url = getUrl("component/downloader.js") | ||
assert.equal("git://github.com/component/downloader.js", url) | ||
assert.equal("https://github.com/component/downloader.js", url) | ||
}) | ||
@@ -29,3 +29,3 @@ | ||
var url = getUrl("component/.downloader.js") | ||
assert.equal("git://github.com/component/.downloader.js", url) | ||
assert.equal("https://github.com/component/.downloader.js", url) | ||
}) | ||
@@ -35,4 +35,4 @@ | ||
var url = getUrl("component/-dow-nloader.j-s") | ||
assert.equal("git://github.com/component/-dow-nloader.j-s", url) | ||
assert.equal("https://github.com/component/-dow-nloader.j-s", url) | ||
}) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3780