Skip to content

Commit c96ef63

Browse files
ScienJusbugthesystem
authored andcommitted
support endline in gitlab (#94)
1 parent 159d818 commit c96ef63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gitProvider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Bitbucket extends BaseProvider {
6565
class GitLab extends BaseProvider {
6666
webUrl(branch, filePath, line, endLine) {
6767
if (filePath) {
68-
return `${this.baseUrl}/blob/${branch}` + (filePath ? `${filePath}` : '') + (line ? `#L${line}` : '');
68+
return `${this.baseUrl}/blob/${branch}` + (filePath ? `${filePath}` : '') + (line ? `#L${line}` : '') + (endLine ? '-' + endLine : '');
6969
}
7070
return `${this.baseUrl}/tree/${branch}`;
7171
}

0 commit comments

Comments
 (0)