From c8d17b1cc6c3b6a5d039bccbc63e74e5e1a9071c Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 23 Apr 2011 01:00:39 -0500 Subject: [PATCH] ignore case when parsing name --- autoload/vundle/config.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index 4b4d2fc..9d49dbf 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -40,13 +40,13 @@ endf func! s:parse_name(arg) let arg = a:arg - if arg =~ '^\s*\(gh\|github\):\S\+' - \ || arg =~ '^\w[a-z0-9-]\+/[^/]\+$' + if arg =~? '^\s*\(gh\|github\):\S\+' + \ || 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\+' - \ || arg =~ '(file|https\?)://' - \ || arg =~ '\.git\s*$' + elseif arg =~? '^\s*\(git@\|git://\)\S\+' + \ || arg =~? '(file|https\?)://' + \ || arg =~? '\.git\s*$' let uri = arg let name = split( substitute(uri,'/\?\.git\s*$','','i') ,'\/')[-1] else