Skip to content

Commit

Permalink
fix repo evaliation - fix #54 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanjudis authored Jul 28, 2016
1 parent 104f6bc commit 84174fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/modules/RepoUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function getRepoUrl( repoData ) {

if ( repo ) {
if ( repo.url ) {
return repo.url.replace( /(git:\/\/|\.git)/g, '' );
return `https://${ repo.url.replace( /((git)?\+?(https)?:\/\/|\.git)/g, '' ) }`;
}

if ( /^.*?\/.*?$/.test( repo ) ) {
Expand Down Expand Up @@ -56,4 +56,4 @@ export const readRepoData = function( repoPath ) {
resolve( repo );
} );
} );
};
};

0 comments on commit 84174fc

Please sign in to comment.