normalize-git-url
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -26,2 +26,4 @@ var url = require('url') | ||
returnedUrl = u.replace(/^git\+(.*:[^:]+):(.*)/, '$1/$2') | ||
} else if (u.match(/^git\+file/)) { | ||
returnedUrl = u.replace(/^git\+/, '') | ||
} else { | ||
@@ -28,0 +30,0 @@ returnedUrl = u.replace(/^(?:git\+)?ssh:\/\//, '') |
{ | ||
"name": "normalize-git-url", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Normalizes Git URLs. For npm, but you can use it too.", | ||
@@ -5,0 +5,0 @@ "main": "normalize-git-url.js", |
@@ -62,4 +62,11 @@ var test = require('tap').test | ||
) | ||
t.same( | ||
normalize('git+file:///foo/bar.git'), | ||
{ url: 'file:///foo/bar.git', branch: 'master' } | ||
) | ||
t.same( | ||
normalize('git+file://C:\\Users\\hello\\testing.git#zkat/windows-files'), | ||
{ url: 'file://C:\\Users\\hello\\testing.git', branch: 'zkat/windows-files'} | ||
) | ||
t.end() | ||
}) |
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
9143
10
104