File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ function parsePath(url) {
42
42
output . protocols = protocols ( parsed )
43
43
output . protocol = output . protocols [ 0 ]
44
44
output . port = parsed . port
45
- output . resource = parsed . host
45
+ output . resource = parsed . hostname
46
46
output . user = parsed . username || ""
47
47
output . password = parsed . password || ""
48
48
output . pathname = parsed . pathname
Original file line number Diff line number Diff line change @@ -241,6 +241,20 @@ const INPUTS = [
241
241
, query : { }
242
242
, search : ""
243
243
}
244
+ ] , [
245
+ "https://github.com:89/org/repo.git"
246
+ , {
247
+ protocols : [ "https" ]
248
+ , protocol : "https"
249
+ , port : "89"
250
+ , resource : "github.com"
251
+ , user : ""
252
+ , pathname : "/org/repo.git"
253
+ , hash : ""
254
+ , href : "https://github.com:89/org/repo.git"
255
+ , query : { }
256
+ , search : ""
257
+ }
244
258
]
245
259
] ;
246
260
You can’t perform that action at this time.
0 commit comments