Skip to content

Commit

Permalink
Merge pull request #12 from swistak35/master
Browse files Browse the repository at this point in the history
Remove newline from the repository name
  • Loading branch information
mmozuras committed Jul 3, 2016
2 parents fc39af5 + 9b45ec9 commit aa0a2f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/github-comment.vim
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ function! s:GitHubRepository()
let name = split(remote, 'git://github\.com/')[0]
let name = split(name, 'git@github\.com:')[0]
let name = split(name, '\.git')[0]
let name = substitute(name, '\n\+$', '', '')

return name
endfunction
Expand Down

0 comments on commit aa0a2f1

Please sign in to comment.