Skip to content

Commit

Permalink
support endline in gitlab (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScienJus authored and bugthesystem committed Jun 25, 2018
1 parent 159d818 commit c96ef63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gitProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Bitbucket extends BaseProvider {
class GitLab extends BaseProvider {
webUrl(branch, filePath, line, endLine) {
if (filePath) {
return `${this.baseUrl}/blob/${branch}` + (filePath ? `${filePath}` : '') + (line ? `#L${line}` : '');
return `${this.baseUrl}/blob/${branch}` + (filePath ? `${filePath}` : '') + (line ? `#L${line}` : '') + (endLine ? '-' + endLine : '');
}
return `${this.baseUrl}/tree/${branch}`;
}
Expand Down

0 comments on commit c96ef63

Please sign in to comment.