+6
-0
| 1.0.1 / 2018-12-12 | ||
| ================== | ||
| **fixes** | ||
| * [[`17a90af`](http://github.com/repo-utils/giturl/commit/17a90af15e48b585ef503467d4a4f80c3e003ebf)] - fix: support multiple directory (#11) (Haoliang Gao <<sakura9515@gmail.com>>) | ||
| 1.0.0 / 2015-10-15 | ||
@@ -3,0 +9,0 @@ ================== |
+2
-1
@@ -46,4 +46,5 @@ /**! | ||
| // p1/p2/.../pn[.xxx] | ||
| var url = item[2].split('/', 2).join('/'); | ||
| var isContainGit = /\.git$/.test(sourceURL); | ||
| var url = isContainGit ? item[2] : item[2].split('/', 2).join('/'); | ||
| return protocol + '://' + host + '/' + url; | ||
| }; |
+8
-6
| { | ||
| "name": "giturl", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "Transfer git url to web url", | ||
@@ -17,5 +17,3 @@ "main": "index.js", | ||
| }, | ||
| "dependencies": { | ||
| }, | ||
| "dependencies": {}, | ||
| "devDependencies": { | ||
@@ -28,3 +26,3 @@ "autod": "*", | ||
| "jshint": "*", | ||
| "mocha": "*", | ||
| "mocha": "2", | ||
| "mocha-lcov-reporter": "*", | ||
@@ -45,3 +43,7 @@ "should": "3.3.1", | ||
| "keywords": [ | ||
| "giturl", "git", "github", "gitlab", "url" | ||
| "giturl", | ||
| "git", | ||
| "github", | ||
| "gitlab", | ||
| "url" | ||
| ], | ||
@@ -48,0 +50,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
6660
4.03%41
2.5%7
-12.5%