Browse Source

allow dash as github username

pull/25/merge
gmarik 15 years ago
parent
commit
1599927a43
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      autoload/vundle/config.vim

+ 1
- 1
autoload/vundle/config.vim View File

@ -41,7 +41,7 @@ endf
func! s:parse_name(arg)
let arg = a:arg
if arg =~ '^\s*\(gh\|github\):\S\+'
\ || arg =~ '^\w\+/[^/]\+$'
\ || arg =~ '^\w[a-z0-9-]\+/[^/]\+$'
let uri = 'https://github.com/'.split(arg, ':')[-1]
let name = substitute(split(uri,'\/')[-1], '\.git\s*$','','i')
elseif arg =~ '^\s*\(git@\|git://\)\S\+'


Loading…
Cancel
Save