parse-github-repo-url
Advanced tools
Comparing version 1.4.0 to 1.4.1
11
index.js
@@ -40,2 +40,13 @@ var parse = require('url').parse | ||
// https://docs.gitlab.com/ce/user/group/subgroups/ | ||
if (~url.host.indexOf('gitlab')) { | ||
var m = /^\/((?:[\w-.]+\/)+)([\w-.]+)$/.exec(path) | ||
if (m) { | ||
m = m.slice(1, 3); | ||
// remove slash at the end | ||
m[0] = m[0].slice(0, -1); | ||
return m.concat((url.hash || '').slice(1)); | ||
} | ||
} | ||
return false | ||
@@ -42,0 +53,0 @@ } |
{ | ||
"name": "parse-github-repo-url", | ||
"description": "Parse a GitHub URL for user/project@version", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Jonathan Ong", |
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
4791
47