* make url right for URL parse * @param {string} gitUrl git url * @returns {string} fixed url
(gitUrl)
| 188 | * @returns {string} fixed url |
| 189 | */ |
| 190 | function correctUrl(gitUrl) { |
| 191 | // like: |
| 192 | // proto://hostname.com:user/repo -> proto://hostname.com/user/repo |
| 193 | return gitUrl.replace(RE_HOSTNAME_WITH_COLON, "$1/$2"); |
| 194 | } |
| 195 | |
| 196 | /** |
| 197 | * make url protocol right for URL parse |
no test coverage detected