| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3a331b6 commit 8b16ba3
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -413,7 +413,7 @@ function validateHostname(self, rest, hostname) { | |||
| 413 | 413 | } | |
| 414 | 414 | // Invalid host character | |
| 415 | 415 | self.hostname = hostname.slice(0, i); | |
| 416 | - if (i < hostname.length - 1) | ||
| 416 | + if (i < hostname.length) | ||
| 417 | 417 | return '/' + hostname.slice(i) + rest; | |
| 418 | 418 | break; | |
| 419 | 419 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -851,6 +851,21 @@ var parseTests = { | |||
| 851 | 851 | pathname: '/:npm/npm', | |
| 852 | 852 | path: '/:npm/npm', | |
| 853 | 853 | href: 'git+ssh://git@github.com/:npm/npm' | |
| 854 | + }, | ||
| 855 | + | ||
| 856 | + 'https://*': { | ||
| 857 | + protocol: 'https:', | ||
| 858 | + slashes: true, | ||
| 859 | + auth: null, | ||
| 860 | + host: '', | ||
| 861 | + port: null, | ||
| 862 | + hostname: '', | ||
| 863 | + hash: null, | ||
| 864 | + search: null, | ||
| 865 | + query: null, | ||
| 866 | + pathname: '/*', | ||
| 867 | + path: '/*', | ||
| 868 | + href: 'https:///*' | ||
| 854 | 869 | } | |
| 855 | 870 | ||
| 856 | 871 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments