github-url-to-object
Advanced tools
Comparing version 1.5.2 to 1.5.3
@@ -34,2 +34,4 @@ 'use strict' | ||
var parsedURL = url.parse(repo_url) | ||
if (!parsedURL.hostname) return null | ||
if (parsedURL.hostname !== 'github.com') return null | ||
@@ -36,0 +38,0 @@ var parts = parsedURL.pathname.match(/^\/([\w-_]+)\/([\w-_\.]+)(\/tree\/[\w-_\.\/]+)?(\/blob\/[\w-_\.\/]+)?/) |
{ | ||
"name": "github-url-to-object", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "Extract user, repo, and other interesting properties from GitHub URLs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
14695
243