From 76273c31a16c233c6fa2c8269ae7d99d6b30f791 Mon Sep 17 00:00:00 2001 From: Dmitri Iouchtchenko Date: Fri, 6 May 2011 21:03:24 -0400 Subject: [PATCH] fix parsing of GitHub repo paths GitHub usernames cannot start with an underscore, but they can be a single character long. --- 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 9d49dbf..2287140 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[a-z0-9-]\+/[^/]\+$' + \ || arg =~? '^[a-z0-9][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\+'