From a2c5d5442df491f2800fe825111330c1fce75b68 Mon Sep 17 00:00:00 2001 From: gmarik Date: Mon, 23 May 2011 14:30:50 -0500 Subject: [PATCH] Fix regex --- 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 2287140..96ff8bf 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -45,7 +45,7 @@ func! s:parse_name(arg) let uri = 'https://github.com/'.split(arg, ':')[-1] let name = substitute(split(uri,'\/')[-1], '\.git\s*$','','i') elseif arg =~? '^\s*\(git@\|git://\)\S\+' - \ || arg =~? '(file|https\?)://' + \ || arg =~? '\(file\|https\?\)://' \ || arg =~? '\.git\s*$' let uri = arg let name = split( substitute(uri,'/\?\.git\s*$','','i') ,'\/')[-1]