Skip to content

Commit

Permalink
follow pnpm's conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
andreineculau committed Mar 18, 2023
1 parent 1b7c82a commit ac78171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resolving/git-resolver/src/parsePref.ts
Expand Up @@ -167,7 +167,7 @@ function correctUrl (giturl: string) {
giturl = giturl.slice(0, lastColonBeforeHash) + '/' + giturl.slice(lastColonBeforeHash + 1)
}

if (lastIndexOfBefore(giturl, ':', '#') === -1 && giturl.indexOf('//') === -1) {
if (lastIndexOfBefore(giturl, ':', '#') === -1 && giturl.includes('//')) {
// we have no : at all
// as it would be in:
// username@hostname.com/user/repo
Expand Down

0 comments on commit ac78171

Please sign in to comment.