Lines Matching refs:urlparse
223 const urlparse = url.parse(res.rawSpec)
226 switch (urlparse.protocol) {
235 const match = urlparse.protocol === 'git+ssh:' && matchGitScp(res.rawSpec)
240 setGitCommittish(res, urlparse.hash != null ? urlparse.hash.slice(1) : '')
241 urlparse.protocol = urlparse.protocol.replace(/^git[+]/, '')
242 if (urlparse.protocol === 'file:' && /^git\+file:\/\/[a-z]:/i.test(res.rawSpec)) {
244 urlparse.host += ':'
245 urlparse.hostname += ':'
247 delete urlparse.hash
248 res.fetchSpec = url.format(urlparse)
258 throw unsupportedURLType(urlparse.protocol, res.rawSpec)