From 1599927a4389c528028941f49edb678c745dadbb Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 23 Apr 2011 00:53:34 -0500 Subject: [PATCH] allow dash as github username --- autoload/vundle/config.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index 3922f79..4b4d2fc 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -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\+'